The Ex Ante Function of the Criminal Law