Any person who goes about any prison against the will or order of the officer in charge shall be guilty of a misdemeanor and, on conviction, must be fined not less than $20.00 and sentenced to hard labor for the county for not more than six months.