What is the meaning of Double-edged_sword?

A benefit that is also a liability, or (a benefit) that carries some significant but not-so-obvious cost or risk.

A neutral principle that has applications that may be either positive (beneficial) or negative (adverse) to one's own interests.

Used other than figuratively or idiomatically: see double-edged, sword.

Source: wiktionary.org