I worked as a barista for many years and meh- it happens sometimes. Customers get into it with each other now and then.
Fortunately, your situation didn't get physical. Frankly, if you want my honest opinion- that guy sounds like he was in a rotten mood. Or maybe he's really a jerk. I'm betting he was nicer after he got his coffee