If you don’t want your Sim to die in Sims 3 for Windows PC, there is a way.
Go to Pleasant Rest Graveyard. Near the gate, there’s a Death Flower Bush. Harvest the flower from it. When the Grim Reaper comes to take you, you can offer this flower to him. You will then be resurrected.