Any person who carries on or engages in the business of shaving, hair cutting or other work of a barber on the first day of the week, shall be deemed guilty of a misdemeanor, and upon conviction thereof shall be fined not more than five dollars; and upon a second conviction for a like offense shall be fined not less than ten dollars and not more than twenty-five dollars, or be imprisoned in the county jail for a period of not less than ten days, nor more than twenty-five days, or be punishable by both such fine and such imprisonment at the discretion of the court of magistrate.