There are lots of laws in Thailand that are sporadically, selectively, unevenly or not at all enforced.
The TM30 foreign resident laws in Thailand were put on the books in 1979 but they only decided to start enforcing them (albeit extremely inconsistently) in the last few months.