A magistrate has warned a former public servant accused of assaulting two police officers that if he breaches court orders he may end up behind bars.