know better than

know better than

be wise, well-informed, or well-mannered enough to avoid doing something specified.
1989 Anne Fine Goggle-Eyes Inspector McGee knows better than to tangle with Beth's granny.
See also: better, know