Care must be taken that the punishment does not exceed the offence.