Criminal law is a critical branch of the legal system, focusing on laws related to…