Forking coins isn't illegal.
Agree there probably is not a law in any country which says "forking a coin is illegal". But depending on what the fork does and causes, can be illegal and/or grounds for liability to pay damages. For example, a fork causes all coins and transactions to be deleted => damages caused = coin's marketcap before the fork.