[Though that's not AFAIK intended as a defensive strategy against reputational harm, rather as one against the dangers of lust].
The old form of it was “avoid occasions of sin or scandal”.