The Nuremberg trials did their part.
Bringing justice or punishment to perpetrators of crimes such as the Nazis' or Saddam's can help prevent. Unfortunately the United Nations, the agency set up to bring justice to the world, started protecting the criminals.