Initially, God never had death as part of His plan for us, but when disobeyed and rebelled, we gave access to mortality.
Reminding us that life is a gift, death came into the world by Adam's and Eve's disobedience.
We should live with consciousness that our days are in God's hands and He alone has the power to give life and take it.
The earth is not our final destination, life is fleeting.
Death is a transition from our physical bodies to our eternal spiritual form ,it is not a bad thing.
When we have God's plan in mind and understand death this way, it enables us to prepare our spirits for the eternal life we are promised and live a purposeful life.