After failing to drive out their enemies, the Israelites find themselves tested and tempted by pagan practices. Later, they start marrying them and giving in tha worshipping to their gods.
Relationships with unbelievers is crucial. But how do we do this in a way that doesn’t compromise our own morals and entangle us in their sinful practices?
I don’t know the answer to that, and some people have different limits than others because of their maturity of faith. But no one is excluded from this warning.
Examine the relationships you’re in with people who don’t know God. Who is influencing who? Submit them before God and ask him to examine them to.