In a Bangkok temple:

It is forbidden to enter a woman even a foreigner if dressed as a man.