The municipal or county governing body or the historic preservation commission shall be authorized to institute any appropriate action or proceeding in a court of competent jurisdiction to prevent any material change in the appearance of a designated historic property or historic district, except those changes made in compliance with the provisions of an ordinance adopted in conformity with this article, or to prevent any illegal act or conduct with respect to such historic property or historic district.