Seriously, if you need some crazy draconian law to make sure people aren't littering everywhere, then something is very wrong with your people's culture and level of civilization.
In Japan there aren't any laws like that, yet it's safe to say that it is the most civilized country on the planet. It's extremely safe, criminal violence is virtually unheard of, levels of cleanliness are superb and the people are generally very polite and pleasant in everyday situations.
It's a living proof that you don't need to intimidate people if their morals and sense of responsibility are in check and they know not to do "bad things" because they're wrong and harmful to the society, and not because they will get caned otherwise.