To counter a hard force with an equally hard one; fight fire with fire.
Literally: to cut iron with iron