Digital nomads are huge benefit to local economy. I can't imagine country would start enforcing some outdated piece of legislation against them. In other words, even if it's illegal, it's not enforceable.
Outdated legislation which is no longer enforced is common everywhere. For example Alabama has a homophobic law which says this must be included in every sex education program:
"homosexuality is not a lifestyle acceptable to the general public and that homosexual conduct is a criminal offense under the laws of the state."
http://codes.lp.findlaw.com/alcode/16/40A/16-40A-2
Illegal != Enforceable