Magistrates face danger at work