idiom
double-edged sword
Meaning
something that has both positive and negative consequences
Example
AI surveillance is a **double-edged sword** for security and privacy.