Where under the terms of a security agreement, as defined in paragraph (74) of subdivision (a) of Section 9102 of the Commercial Code, the debtor has the right to sell the property covered thereby and is to account to the secured party for, and pay to the secured party the indebtedness secured by the security agreement from, the proceeds of the sale of any of the property, and where the debtor, having sold the property covered by the security agreement and having received the proceeds of the sale, willfully and wrongfully, and with the intent to defraud, fails to pay to the secured party the amounts due under the security agreement, or the proceeds of the sale, whichever is the lesser amount, and appropriates the money to his or her own use, the debtor shall be guilty
of embezzlement and shall be punishable as provided in Section 514.