Breach of contract itself is not illegal, but depending on intent, it could be more than breach. If you enter into a contract with the intent to extract value without abiding by the agreed terms, then it can be considered fraud. Whether it is possible to prove, or worthwhile for that to be pursued by a prosecutor is circumstantial. IANAL