"Adulterers and adulteresses! Do you not know that friendship with the world is enmity with God? Whoever therefore wants to be a friend of the world makes himself an enemy of God." James 4.4This verse clearly defines who is who. The friends of God are enemies of the world and the friends of the world are enemies of God.
The enemies of God automatically become friends of the devil. The friends of God automatically become enemies of the devil.