Good lawyers (and judges) keep criminal justice system honest
It should definitely be stated that most police officers are honorable public servants. Unfortunately, there are rogue officers who act as the law unto the themselves and do not testify truthfully on the witness stand, as recent Federal indictments in