(2)In cases where the offence is committed after sunset and before sunrise, or after making preparation for resistance to the execution of any law or any legal process, or where the offender has been previously convicted of a like offence, the convicting Magistrate may inflict double the penalty prescribed for such offence.