Any person who willfully violates any provision of this chapter or of any rule or order thereunder shall upon conviction be fined not more than ten thousand dollars ($10,000) or imprisoned pursuant to subdivision (h) of Section 1170 of the Penal Code, or in a county jail for not more than one year, or be punished by both such fine and imprisonment, but no person may be imprisoned for the violation of any rule or order if it is proven that such person had no knowledge of the rule or order.