That’s mixing cause and consequences. A society is shaped by its members not the other way round. The law can punish the most egregious transgressions. It won’t set the global standard. Education and social behaviour set the standards. If you want behaviour to disappear, stop treating them as acceptable.