section 3 0r section 3A, shall not be liable for punishment; in case of the first offence:] '[(2) Whoever, having been convicted of an offence under