before God rose Himself from the dead they were still under the old covenant.
gal 3:22 but the scripture hath concluded ALL under sin that the promise by faith of Jesus Christ might be given to them that believeth.verse 24 says...wherefore the law was our schoolmaster to bring us unto Christ THAT WE MIGHT BE JUSTIFIED BY FAITH.
Jesus (God) Christ said if u look at a woman with lust you have committed adultery with her in your heart.
the point He was making is we are sinners and The messiah was here to fix what Adam messed up.
gal 3:13 Christ hath redeemed us from the curse of the law,being made a curse FOR US.

Quit TRUSTING in your filthy rags of works and TRUST in what HE DID FOR US.
the law cannot save you. only the shed blood of Jesus Christ and HIS resurrection can give you eternal life.

TRUST HIM.