what is the main objective of criminal law