What is the penalty for writing a check on a closed account in the state of California?

Writing a check on a checking account that is closed/inactive is a crime. Customers are not supposed to do that and if they do, the bank can report it and take legal action against the offending customer. The customer can be fined or jailed for doing so. This penalty is irrespective of the country/state you reside in.