The only reasonable situation where this would be a valid reaction to, would be if you lied on your CV in an important point.
I am not mentioning a little exaggeration, not something like blowing all technical questions where you did not have as much experience as one would like, but misstating hard facts, like making up a PHD. Something like that would be fraud, and an employee would be obligated, should he become aware of such a situation to limit the damage to his employer.
Nonetheless, the behavior they showed is unprofessional - it should be clearly stated if that happens.
In all other cases, the behavior is completely unusual, unprofessional, and should be reason for consulting a lawyer.