In case any building or structure is erected, constructed, altered, repaired, converted, or maintained, or any building, structure or land is used in violation of this chapter, made under authority conferred hereby, the proper local authorities of the Borough or an interested party may institute legal action or proceedings to prevent such unlawful activities, to restrain, correct, or abate such violation, or to prevent occupancy or use.