Criminal law is a branch of law that focuses on behaviors considered harmful to society,…