I suppose. Or sometimes you do it if you have no case and are trying to provoke a mistrial.
Is that what this? Worth a try I suppose.
If the goal was to get this young woman on the bench to flip out, then they seem to have succeeded. If the goal was to reveal the judge as biased for the prosecution, probably not.
Remember. Every judge is just a lawyer with too much power — and all the other judges will put her interests ahead of any defendant appearing before her.
Bing! And if he delivered that scolding in front of the jury, I'd say the have their mistrial.