Criminal law is a crucial part of the legal system, aiming to maintain public order…