For example,
Let’s say someone does a lot of good deeds like observing the five precepts and giving offerings. Then, a murderer comes and kills him. But that someone didn’t have any fears, hate, or confusion. Can he still be reborn in the deva world if the last thought was “A murderer is trying to kill me”? Does he need to be thinking about the deva world to be born there?
What decides whether he is reborn in the human or deva world? The aspirations he made at the time of doing good deeds? The amount of good deeds?