For a ripped-from-the-headlines example, a COVID-19 emergency spending bill is currently stalled in Congress due to a dispute over whether it should contain anti-price-gouging language.
Of course there are cases where it’s “evil” and I’m sure OP already knows that, but answering the question with any kind of precision is probably impossible. A better question is whether it can lead to inefficient distribution of resources or result in negative externalities. The answer to both is yes. Gouging implies quite a different thing to me than surge pricing though and I’m pretty fine with the latter.