(3) Upon any subsequent conviction in excess of a second conviction under this section, the defendant shall be fined not less than five hundred dollars, nor more than one thousand dollars, or imprisoned in the county jail not less than thirty days nor more than sixty days, or both fined and imprisoned. Notwithstanding the provisions of section four, article eleven-a of this chapter or section two-a, article three, chapter fifty of this code, the magistrate or court may order restitution not to exceed the value of unauthorized cable services received.