Voluntary Law and Order

People are not all the same, and they make different choices because they have different values, circumstances, and levels of understanding. Sometimes those choices are peaceful and wise; sometimes they are not. So what are the best ways to promote good choices and cooperation while preventing and providing resolution for conflict?