Crime is an act that is prohibited by law and is subject to punishment. Criminal…