Yeah, it all just depends on how it's done and with what motives.
Like some take the scripture:
Proverbs 27:5
5 Open rebuke is better than secret love.
And think, oh, I have permission to rebuke people, Yes!!!, and miss the point that it must be done in love, with the hope of helping someone out of whatever they've fallen into, not because it's our job to put someone in their place, and feels good while doing it.