Fetching details from the dictionary...

to be careful; to be discreet
to do in moderation; to refrain (from overdoing); to abstain
to be reverent
to be purified; to be chaste
公の場では言動を謹んで慎重に行動しなさいと言われた。
Be careful about your words and actions.
医師の忠告に従い酒を謹んで節制し健康を保っている。
I refrain from alcohol to maintain my health.
医師の忠告を受けて飲酒を謹んだ。
He refrained from drinking after the doctor's advice.