Jesus never scolded this woman. He revealed to her His omniscience, and He revealed to her His sovereign power over eternal life, which in her understanding of scripture revealed that He was the sought after Messiah.
What does the Messiah do? He takes away the sins of the world. Not specific sins. There is not a hierarchy of sins that Jesus’s blood cannot nullify. When Jesus sets someone free, they are free indeed.
Whatever you have done, whenever it was (Past, present, or if it happens in the future) knows this: Jesus