One of the many lessons we learn from the story of Adam, Hawa, and Shaytaan is that no matter what mistake a person makes, Allah's forgiveness awaits them so long as they seek it.
In this story, there is a profound "fork in the road" when Shaytaan whispers to Adam and Hawa to approach and eat from the tree: both parties had made mistakes, but while one gets cursed, the other is forgiven. What was the difference?