God used the sinful actions of humans to fulfill his will to provide the innocent one to take the place of the guilty.
In Stephen's speech before the Jewish Council, he gave a master class on the meaning of Old Testament history, which culminated in Jesus.
As the second Adam and the faithful Israel, Jesus resisted temptation and so can help us when we are tempted.