Whilst I agree that we can all be hypocritical at times the two situations are very different.
The Thai immigration policy is better enforced by the Thai authorities than successive UK governments. Not one Satang is handed out to foreigners who come to Thailand and foreigners (in theory) have to show the ability to support themselves, including housing, hospitals and welfare.
In the case of Thailand those foreigners have almost exclusively arrived legally.......the rule bending happens later and flourishes on the back of the endemic corruption in the country.
Let's see a Farang try and impose his culture, or religion, on Thais/Thailand.