To cut both ways

to have effects both advantageous and disadvantageous.

See also: Cut