Whoever attempts to commit any offence punishable under this Chapter or to cause such offence to be committed and in such attempt does any act towards the commission of the offence shall be punishable with the punishment provided for the offence.