Maybe better to consider the same problem in a different domain: encryption. A court can order you to give up your encryption key or password. They can even do this if you don't know or have lost your password/key. But neither the court nor its enforcement agencies can simply issue a judgement to decrypt an encrypted email; your compliance is required. The court can hold you in contempt for the rest of your life for not revealing a key you may or may not have, but they can't force you to decrypt it if the key is lost or you don't give in.
Likewise for cryptocurrency and "code is law" smart contracts. A court (or regulator) could demand all they want that a bitcoin transaction be reversed, or that a DAO smart contract be frozen. But if the underlying protocol works as it is supposed to, and if mining/staking is properly decentralized, there ain't shit they can do to actually enforce that demand.
People transacting on a blockchain are still subject to local laws, and need to comply with relevant regulatory directives. No one of consequence seriously believes that something is above the law just because it happens on a blockchain. But pragmatically, a regulator can control the blockchain about as effectively as NASA could get into space by legislating gravity.