This applies not only to associating with unbelieving wrongdoers but also to associating with those who claim to worship Jehovah but who deliberately violate his laws.
وَلِكَيْلَا تُفْسَدَ عَادَاتُنَا ٱلنَّافِعَةُ ،‏ لَا يَنْبَغِي أَنْ نُعَاشِرَ ٱلَّذِينَ يُمَارِسُونَ أُمُورًا خَاطِئَةً .‏