Sure, but you could have maybe tried to interpret it a little bit and ask them what they mean? Instead you opted to make public spectacle of something that a lot of non-native speakers are self-conscious of.
Or you could just have not engaged. But again. You opted to make fun of someone because either you were being thoughtless/careless, or because you’re an asshole. Not a huge deal, but deserves being commented on.