two-edged sword
and double-edged swordFig. something that offers both a good and bad consequence. The ability to get your insurance to pay for it is a double-edged sword. They may raise your rates. Her authority in the company is a two-edged sword. She makes more enemies than allies.