Soldato
This particular law applies to everyone.
She was punished, not because she aborted, but because she obtained the abortion method through deception - It was unlawfully obtained and thus unlawfully administered.
As written, the law punishes the mother or any other person, who unlawfully obtains (or provides) or administers a method of abortion. If she'd been honest and the doctor had still let her have the pill, the doctor would be the one hauled over the coals, for the unlawful supply.
So basically like punishing someone for possession of an illegal firearm rather than for the murder of the person they shot with it...