on the wrong side of
on the wrong side of (someone)
Displeasing to someone; provoking someone's anger, contempt, or dismissal. The best way to get through this class is to say nothing unless called upon, and to make sure you don't get on the wrong side of the teacher! I thought it was all in good fun, but I might have gotten on the wrong side of her with my sarcastic comments.
Farlex Dictionary of Idioms. © 2015 Farlex, Inc, all rights reserved.
*on the wrong side of someoneand *on someone's wrong side
Fig. out of favor with someone. (*Typically: be ~; get ~.) Don't get on the wrong side of her. I do what I can not to get on the wrong side of people.
McGraw-Hill Dictionary of American Idioms and Phrasal Verbs. © 2002 by The McGraw-Hill Companies, Inc.