stoop/descend to someone’s level - definition and synonyms

phrase
  1. to behave in the same bad way that someone else is behaving
See also main entry: level