If you get on the wrong side of someone, you do something to annoy them and make them dislike you. If you stay on the right side of someone, you try to please them and avoid annoying them.
I wouldn't like to get on the wrong side of him.
You'll need to get on the right side of Carmela.