Immigration famously raided a co-working space in Chiang Mai a couple of years ago and hauled all the Digital Nomads downtown for questioning. In the end it turned out to be a misunderstanding and none of them were in trouble, despite it being verboten, officially.
https://www.techinasia.com/digital-nomads-chased-out-of-punspace
Here's a subsequent detailed analysis looking into the implications...
http://siamstartup.com/news/co-working-in-thailand/

