In practice I think you'd always find some dysfunction in the person's life which would have come about through the pedophilia. Please explain this. When a society is bound together by certain values, it functions in a manner analogous to the family. People get a sense of belonging and a shared sense of what's right and wrong. When a society loses its ability to inculcate its values in its members, these values lose their strength, and soon we're in real trouble.
Modernization entails a tendency to no longer be ruled by traditions.
Along with modernization comes science, and along with science comes objectification. When you look at something objectively, the sanctions against it begin to fall away. Soon people begin to seriously consider the other options. Look at sex education in the schools. It works against the deep values people originally had associated with these matters.