God has given the world His Word and Guidance for life, but everyone is free to follow it or not. It is not by doing good or doing bad that everything in life shall run like we would like it, or would go good or bad. We all know that “bad” things happen to “good” people, and no spiritual building can hold by pretending otherwise. It’s simply untrue that every well-lived life leads only to outwardly positive outcomes. It’s equally untrue that difficult circumstances prove that someone strayed from the path.
After having looked at Adam we cannot pass his helper Eve. It was she who brought the man to follow her idea and to ignore God's Wish not to eat from the Tree of moral, with as consequence that they got knowledge of good and evil and came to learn pain and death.