It shall be unlawful for any mover of houses or buildings or the owner of any house or building being moved under the provisions of this article to allow the same to remain standing on any street or public grounds longer than is reasonable and necessary, and any person violating the provisions of this section shall be deemed guilty of a misdemeanor and be punished as hereinafter provided.