Realists focus on national interest, and wars are usually not in the national interest because of uncertainty, casualties, and expense. So, Realists pursue various methods to prevent war. Participating in international organizations like the UN is one way of pursuing their national interests and avoiding war. Alliances and treaties are also useful for maintaining security.
Thumbnail: Gorbachev and Reagan sign the INF Treaty. (Public Domain; via Wikipedia)