means that
the maxim argues that military preparedness may deter attack and thereby preserve peace. It expresses a strategic view, not a guarantee of peace.
The saying “If you want peace, prepare for war” can be used when if you are strong and prepared, the other will think twice before attacking.