Can you please cite sources for that? I really don't think that's the case.
The counterfactual would be that if this were possible, every foreigner in Thailand would be made an employee of a company in Ireland or something to avoid dealing with visa issues (or tax issues )
https://ashleyconnor.co.uk/2014/09/07/the-digital-nomad-and-...
You can't really work anywhere in South East Asia without a work permit. Cambodia used to be the easiest place but last time I looked they were changing the law.
A lot of these laws were made before remote work was even a thing.
Some countries do allow remote work. Canada being one of them.
In reality, it's a non-issue for the reasons above.