Just last week, I was guilty of saying something that more or less "slammed" a player for his attitude. In hindsight, as soon as I said it, I KNEW that what I'd said would only serve to throw gas on the fire, and I was right. The player approached me after the game and harassed the crap out of me.
The comment you made to the player was, perhaps, a bit out of line. It really served no purpose other than to make you feel better, and heck, I can't blame you, nor am I trying to get on your case at all. If you are questioning whether or not it was out of line, then the chances are that there was a better way to handle it. Live, learn, move on, play ball! 🙂
There are things we say, and then there's what we REALLY want to say. I've always wanted to say, "Player, stfu. You're whining like a little baby." 😎