Donna Leon said this quote

Perception of personal danger very often set people on the path of virtue.