That’s called ‘taqqiya’. You can deceive your enemy any way you have to under Islam.
But civilian courts cannot produce the death sentence, as the article mentions.
I mis-read ‘civilian’ for ‘civil’.