Setting automated speed traps where drivers don't respect the limit, physically forcing lower speeds where traps didn't work or closing whole streets to regular cars to get rid of the problem altogether.
The main issue isn't just the rules, and if the infrastructure has to be adapted as well, it's often cheaper to get rid of traffic than to rethink a system that work better in adversarial situations.
Making perfect rules is basically impossible, they'd be millions of pages long to fully capture all the caveats and exceptions. The world is fractals complex and so we rely on intelligent prosecutors and police not bothering to pursue things that are illegal but fine.
It's just not worth it to try and make perfect laws.
Better needs to mean something other than gather revenue. And it don't with automated things.