If it causes more than $5k in damage. Otherwise, it's a misdemeanor.

But you probably don't want to be investigated for either.

A deliberate act of revenge against a former employer... wouldn't be given much benefit of the doubt by the courts.