Read the dictionary definition of deter. All definitions for this word.
1. turn away from by persuasion
1. Negative campaigning will only dissuade people
2. try to prevent; show opposition to
1. We should discourage this practice among our youth
See also:
Merriam-Webster definition of deter