315. Whoever before the birth of any child does any act with the intention of thereby preventing that child from being born alive, or causing it to die after its birth, and does by such act prevent that child from being born alive, or causes it to die after its birth, shall, if such act is not caused in good faith for the purpose of saving the life of the mother, be punished with imprisonment for a term which may extend to ten years or with fine or with both.