Actually, in many countries the courts are much more reasonable with regards to interpretation and application of the law. Not just that, but they care about balance between intent of the law, effect and means.
There is no way that say in Germany today the police could get away with trying to induce and photograph a teenage boy's erection for a sexting incident. It is such a fundamental violation of human dignity. I cannot even begin to imagine the press coverage and criminal indictments of the people involved.