I’m Lost and Have Little Time to Live

If someone has realized that they’re lost and don’t have much time to live, what should they do? Should they give up and resign to being lost? Should they wait for God to regenerate them? Should they try to warn other people, and yet remain lost themselves?