Whenever any animal shall be taken up under the provisions of this article, it shall be unlawful for any person to rescue it or deliver it from the custody of the person impounding it; and whoever shall violate this provision shall be guilty of a misdemeanor and be punished by a fine of not less than five nor more than thirty dollars or by imprisonment in the county jail not less than five nor more than thirty days.