Crime is behavior that violates public or private law, and can be punished by the…