deterrent
n.something that stops you from doing something because you are afraid of the consequences. It makes a bad action seem not worth the risk.
n.a factor or measure that discourages or prevents a particular action by instilling doubt or fear of the consequences.
“The high fine is a strong deterrent against speeding.”
“Installing visible security cameras serves as an effective deterrent to potential shoplifters in the retail district.”
“The debate over whether capital punishment acts as a genuine deterrent to violent crime remains a central point of contention in modern legal philosophy.”
Often followed by the preposition 'to' or 'against'.
While 'for' is sometimes used, 'to' is the standard preposition for indicating what is being discouraged.
“Thornberry said that while she did not agree on a full ban on Israeli goods, she thought a ban on those from the West Bank would be part of a deterrent.”
“They don't turn people away, and their strictness isn't a deterrent, but there are a lot of cultural norms for those interested in converting to absorb.”