Yes, it is the case, the digital nomad scene is illegal in most (all?) countries. The plus side is nobody knows what you're doing and typically you don't have any money going through Thai bank accounts. There have even been rare examples of co-working spaces being raided.
In reality, it's a non-issue for the reasons above.