Or is gaining friendship with the world automatically "put you at God's displeasure"?
"if someone carries consecrated meat in the fold of their garment, and that fold touches some bread or stew, some wine, olive oil or other food, does it become consecrated?”’
The priests answered, ‘No.’
Then Haggai said, ‘If a person defiled by contact with a dead body touches one of these things, does it become defiled?’
‘Yes,’ the priests replied, ‘it becomes defiled.’" Haggai 2:12-13
This passage is saying that sinfulness in contagious but holiness or righteousness isn't. So when we mix with the world we need to be careful to not let it taint us.