"The law is simple - tattle-tale, go to jail" ID?

Does anyone know what this joke came from? A law enforcer is arresting a perp, for snitching, probably, and says something like the quote in the title. I want to say the Simpsons, but I can’t imagine a situation where that would make sense (maybe one of Barts dreams?).

Sounds like some of the patter from Dr. Dealgood in Mad Maz Beyond Thunderdome just before Max and Blaster start battling.