309. Whoever attempts to commit suicide, and does any act towards the commission of such offence, shall be punished with imprisonment for a term which may extend to one year or with fine or with both.