No person shall be inflicted with a criminal punishment unless he or she has committed an act which the law in force at the time of commission province to be an offence and imposes a punishment therefore, and the punishment to be in inflicted on such person shall not be heavier than that provided by the law in force at the time of the commission of the offence