deter
Definitions
To discourage or restrain someone from acting or proceeding, typically by instilling fear or doubt.
To prevent the occurrence of an event or action through intimidation or the threat of negative consequences.
Examples
The high security fence was installed to deter potential intruders from entering the property.
The fear of failure should not deter you from pursuing your dreams.
Strict penalties are often used to deter people from committing crimes.