"Illegal" means "a violation of law". That's automatically a question of criminality. Contract violations are not a violation of law, they're a violation of a legally-binding contract. Violating a contract isn't illegal in any meaningful sense, but doing so will incur whatever penalties the contract specifies will happen if it's violated. Those penalties are enforced through the legal system, but that doesn't mean that a law was violated. Only a civil agreement.
Parking without paying the meter is illegal, but not criminal.