This is one of those "dual" usage memes, where it can have more than one intent.
I believe the original intent is for it to be a "sarcastic" cheer (ie, making fun of someone, but pretending to encourage or cheer them). I'm pretty sure that the other way of using it (as a genuine encouragement) came later because of usage. I've used this meme wrong too.