deter

Definition

To discourage or prevent someone from doing something by making them fear the consequences.

Example

"Harsh penalties are meant to deter people from committing fraud."