When a person assists a criminal in breaking the law before the criminal gets arrested, we call him an accomplice.
When a person assists a criminal in breaking the law after the criminal gets arrested, we call him a defense lawyer.
Next Joke: A lawyer was on his cell phone calling a locksmith