You can't make it ape-proof because, at minimum, the last mile of enforcement is performed by apes, who are going to continue following their ape instincts. Unless you plan to have government and law enforcement run entirely by robots.
Again: the problem in OP wasn't one of interpreting the law. Everyone understood what the law was. They just didn't care, due to ape reasons. And if you can solve those, a formal logical law is mostly an incremental improvement.
We can make it ape proof, and there is a natural path via arbitrage.