Cut both ways

Meaning: To have both positive and negative effects.

Example: Working from home can cut both ways: it offers flexibility but can also feel isolating.