discourage (someone) from doing something by instilling doubt or fear of the consequences:only a health problem would deter him from seeking re-election
prevent the occurrence of:strategists think not only about how to deter war, but about how war might occur