There is a legitimate argument over whether the death penalty effectively deters violent crime, although my personal observation is that not one of the criminals who have been executed over the years has ever killed again.
Indeed, our particular concept of private property, which deters us from exhausting the positive resources of the earth, favors pollution.
Nothing deters a good man from doing what is honourable.
Decorum -- that bug-bear which deters so many from bliss until the opportunity for bliss has forever gone by.
Admiration for a quality or an art can be so strong that it deters us from striving to possess it.