You might reasonably wonder why a loving and all-powerful God allows our mortal test to be so hard. It is because He knows that we must grow in spiritual cleanliness and stature to be able to live in His presence in families forever. To make that possible, Heavenly Father gave us a Savior and the power to choose for ourselves by faith to keep His commandments and to repent and so come unto Him.
As you live worthy of the gift of the Holy Ghost, the Lord can direct you to safety even when you cannot see the way. For me, He has most often shown the next step or two to take. Rarely has He given me a glimpse of the distant future, but even those infrequent glimpses guide what I choose to do in daily life.
Evil people exist. The in-betweeners merely survive. But those who have really lived will be those who have lived righteously, because they will have lived righteously and served selflessly in a time of stunning contrasts. They will have managed to keep clean in a dirty world. And being free, they will be happy in otherwise sad times, and all their experiences will be for their good.