'You should have known better,' magistrate tells sergeant.