Allama’s famous couplet:
“Pani Pani Kar Gaee Mujh Ko Qalandar Ki Ye Baat
Tu Jhuka Jab Ghair Ke Agay, Na Mann Tera Na Tann”
(Shame and shame that hermit’s saying pouted on me—you forfeit
Body and soul alike if once you bow to another’s might!)
Here people generally take literal understanding of ‘Ghair’ (others) as aqwame ghair (people other than yours). But in the couplet, Ghair also means ‘bad aqli’, ‘be-aqli’, ‘baatil afkar’. Thus the meaning also extends to bowing to the kings, prince and crown prince in Arab countries. Or, the heeding to demand of bribing policemen, politicians, government officials in countries like in Pakistan.
Accordingly, there is no harm in mixing with the other people, even visiting Gurdwara, provided one does not comprise on principles. There is no bad faith in it.