Answer:
Ensuring proper parental upbringing
Adequate education of what is right in schools and religious organizations
Rewarding those who uphold the law and the well behaved ones will ensure others would want to follow suit.
Punishment for defaulters of the law and ensuring there are no corrupt practices available in the judicial system .