Idiom: Know which side one's bread is buttered on

See also: