My brother lived in Thailand for 4 years for a work posting. The Thai system openly favours Thai people over any foreigner, only certain jobs may be carried out by foreigners, others are only for Thai nationals, ever. Secondly, they have dual pricing. When visiting places there will very often be one price for Thais one price for foreigners, which is often much, much higher. Now he lives and works in the UAE and once again, different rules for him as a foreigner. Both he and his husband contribute a lot to the economy in the UAE, and did the same in Thailand, as they are very well off. You commit a crime in either of those countries and the law will be down on you very hard, no excuses that you didn’t understand their laws or culture, no legal aid or human rights lawyers. In many instances they’re treated differently because they’re foreign, which is absolutely fine because those are the rules, those countries are putting their own citizens first, as it should be.