Whether a person does good behavior or bad behavior depends on the length of his life  If he only had one day to live, it would be best for him to steal people's things, because he would not suffer the pain of fear of being caught
The length of life is not a sufficient condition for a person to choose good or bad behavior.
 Stealing is not the best thing for someone who has 20 years left to live because he will suffer from the fear of being caught