Agape is the love of God operating in the human heart. When we rise to love on the Agape level, we rise to the position of loving the person who does the evil deed, while hating the deed the person does.
Naturally, most of us would like to die a peaceful death, but it is clear that we cannot hope to die peacefully if our lives have been full of violence, or if our minds have mostly been agitated by emotions like anger, attachment, or fear. So if we wish to die well, we must learn how to live well: Hoping for a peaceful death, we must cultivate peace in our mind, and in our way of life.