If any person shall occupy any of the offices, apartments, halls, or other portion of the capitol building at Jackson as a lodging or sleeping-room, he shall be guilty of a misdemeanor, and, upon conviction, shall be fined not less than ten dollars nor more than one hundred dollars, and be imprisoned in the county jail not exceeding thirty days.