(a) A person is guilty of a misdemeanor if the person knowingly and willfully violates:
(1) A provision of an emergency or final protective order entered pursuant to:
(A) Subsection (a) or (b), section five hundred two of this article;
(B) If the court has ordered such relief; subsection (2), (7), (9) or (14), section five hundred three of this article;
(C) Subsection (b) or (c), section five hundred nine, article five of this chapter; or
(D) Subsection (b) or (c), section six hundred eight, article five of this chapter;
(2) A condition of bail, probation or parole which has the express intent or effect of protecting the personal safety of a particular person or persons; or
(3) A restraining order entered pursuant to section nine-a, article two, chapter sixty-one of this code.
Upon conviction thereof the person shall be confined in jail for a period of not less than one day nor more than one year, which jail term shall include actual confinement of not less than twenty-four hours, and shall be fined not less than $250 nor more than $2,000.
(b) Any person who is convicted of a second offense under subsection (a) of this section is guilty of a misdemeanor and, upon conviction thereof, shall be confined in jail for not less than three months nor more than one year, which jail term shall include actual confinement of not less than thirty days, and fined not less than $500 nor more than $3,000.
(c) A respondent who is convicted of a third or subsequent offense under subsection (a) of this section when the violation occurs within ten years of a prior conviction of this offense is guilty of a misdemeanor and, upon conviction thereof, shall be confined in jail not less than six months nor more than one year, which jail term shall include actual confinement of not less than six months, and fined not less than $500 nor more than $4,000.