Any phrase can be used ironically or derogatorily, but you have to convey the tone. Easier to do in conversation than in writing. One way to do so is to frame the sentence so it is clear that you are not praising someone.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.