A prosecutor is a lawyer who argues in a court that the defendant should be found guilty of a crime. Prosecutors usually represent the government.
A lawyer who helps the defendant in trial, is acting as a criminal defense attorney.