fun fact, in the UK the offence is “failing to decrypt the device when required to do so” making these measures quite dangerous.
That said, unless you are being charged under a national security crime, the maximum sentence for “failing to decrypt the device when required to do so” is up to two years, so the game’s the game.