I think 4 year olds know how to do that. Follow the exact letter of what they say, but doing everything else outside the bounds of "do this" the way you want to.
I.e. "It's time for bed" means "I'm going to continue to play, just in my bed."
"Go to sleep" means "Pretend to sleep for 5 minutes, then go back to playing." When confronted, say that you woke up after 5 minutes.