5. Whenever there shall be a violation of this section, an application may be made by the attorney general in the name of the people of the state of New York to a court or justice having jurisdiction to issue an injunction, and upon notice to the defendant of not less than five days, to enjoin and restrain the continuance of such violations; and if it shall appear to the satisfaction of the court or justice that the defendant has in fact, violated this section, an injunction may be issued by such court or justice, enjoining and restraining any further violation, without requiring proof that any person has, in fact, been injured or damaged thereby. In any such proceeding the court may make allowances to the attorney general as provided in section eighty-three hundred three of the civil practice law and rules, and direct restitution. In connection with any such proposed application, the attorney general is authorized to take proof and make a determination of the relevant facts and to issue subpoenas in accordance with the civil practice law and rules.
Whenever the court shall determine that a violation of this section has occurred, the court may impose a civil penalty of not more than one hundred dollars for a single violation and not more than five hundred dollars for multiple violations resulting from a single act or incident. A knowing violation of this section shall be punishable by a civil penalty of not more than five hundred dollars for a single violation and not more than one thousand dollars for multiple violations resulting from a single act or incident. No person, firm, association or corporation shall be deemed to have violated the provisions of this section if such person, firm, partnership, association or corporation shows, by a preponderance of the evidence, that the violation was not intentional and resulted from a bona fide error made notwithstanding the maintenance of procedures reasonably adopted to avoid such error.