deterrent
Definitions
Something that discourages or prevents an action by making it seem difficult, dangerous, or unpleasant.
A person or thing that discourages an enemy from taking action, especially by threatening retaliation.
Examples
The high cost was a deterrent to buying the car.
Bright lights can act as a deterrent to burglars.