Crime is behavior that violates the civil or criminal law and can be punished by…