The general purpose of the law was to "protect the state interest and the foetus", which was sufficient to invoke the criminal law power under the Constitution.
The law's primary objective was to safeguard the state's interests and the fetus, which provided sufficient grounds to invoke the criminal law authority under the Constitution.