to get an advantage over sb so that you are in control of a particular situation
GAIN, GET, HAVE, ETC. THE UPPER HAND
Meaning of GAIN, GET, HAVE, ETC. THE UPPER HAND in English
Oxford Advanced Learner's English Dictionary. Оксфордский английский словарь для изучающик язык на продвинутом уровне. 2005