You once again miss the point entirely. You prevent war by detering it.
Standing by and allowing evil prevail is not compatible with peace. Communism slaughtered over 100 million people, mostly their own. Left unchecked, the USSR would have conquered Europe. The USA keep the peace by meeting the challenge.