James says that friendship with the world is enmity with God. We are to be set apart from the world for good works that God has intended for us. You can't have one foot in the world and one foot in the kingdom of God. We've been called to choose Jesus over the fleshly passions of this world.