Non-sexual BDSM dungeon, operating openly for years- totally legal.
Tax evasion- illegal.
See how that works there skippy?
You owe me money. Now, pay up, or I'll put you in a cage.
I wrote it down, that makes it a law, right?
Codification is only one aspect.
You need enforcement and justification as well.