deterrent

Definition

A thing that discourages or prevents an action through fear of its consequences.

Example

"Increased police patrols act as a deterrent to street crime."