Question about smart contracts

If NEM contracts are run off chain, how can we be sure that they are tamper-proof? A interesting thing about Ethereum is the idea that code is law. But for that to happen, I guess, the code must be written in stone.