Preventative methods such as this never work. If the concept were not so widespread in the society, the act would not be so widespread. The cause is knowledge.
Unfortunately, our society is crap, so we'll just do stupider and stupider things until we might as well have stuck with the medieval way of doing things - cutting the offender's member off.