to have two opposite effects or results
cut both / two ways
Definitions from the Oxford Advanced Learner's Dictionary, 9th edition