hoist with/by your own petard - definition and synonyms

phrase
  1. suffering as a result of your attempt to harm someone else
See also main entry: hoist