Whoever abets the commission of an offence shall, if the person abetted does the act with a different intention or knowledge from that of then abettor, be punished with the punishment provided for the offence which would have been committed if the act had been done with the intention or knowledge of the abettor and with no other.