It might be a good idea to have at least one security person right next to a judge whenever court is in session.
https://www.8newsnow.com/investigators/las-vegas-judge-attacked-in-court-before-sentencing/
Uttering verbal threats can be serious enough, but to actually assault a judge & security, will likely add on more severe penalties.