Any person who violates Section 2985.3 or 2985.4 of the Civil Code, relating to real property sales contracts, is guilty of a public offense punishable by a fine not exceeding ten thousand dollars ($10,000), or by imprisonment in a the county jail not exceeding one year, or by imprisonment pursuant to subdivision (h) of Section 1170, or by both that fine and imprisonment.