I have thought about this. I don’t know the answer. I am a follower of Christ. If someone was dead and was known to be not staying in the realm of death, we’re and are a non believer, then it would benefit Hell /Satan to make the temporary environment pleasant to not run then to faith in Christ. Just a thought. The whole I’m a good person and will go to heaven reinforcement to continue deception.
If you are a follower of Christ, then you know the second part is not reality. Dead people do not wander around.