Friendship with the world is adultery
Here’s what it means
Loving the rebellious world system makes a person unfaithful to God like an adulterous spouse.
Why the Bible says it this way
The writer uses a picture to explain one thing by describing it as another.
A helpful detail: James uses covenant marriage language to condemn divided loyalty, not ordinary friendship with unbelieving neighbors.