What God did about the issue with Adam, bringing in Christ Jesus as a countermeasure and a ‘turning the tables’ that eliminated the key effect of Eve’s (Adam’s wife) missing the mark first. Adam had joined her — being cleaved to her. He was faithful to his wife even after a significant risk crystallized, and they lived through it together.
Between the ‘sin’ and Jesus, a palliative measure called the law was introduced to guide the thinking of the people back towards the ideal situation, as was in the garden of Eden. And to therefore ease their historical and generational mind towards recognising and accepting the Messiah (Jesus) when he arrived. It was like doing trial runs to highlight issues in order to make the solution obvious and welcome upon arrival: a necessity for effective implementation and elimination of the crisis.