IMO it's acceptable for the teacher to call you out if you've made a significant improvement or if you topped, but when you're likely to be a bit pissed off about it, and not to mention not even there to defend yourself, that is crossing the line. Talk to your year coordinator/subject coordinator.