When Proctor is first accused of witchcraft, he is confident that he will be able to clear his name. However, when Abigail Williams accuses him of having an affair with her, he is forced to admit the truth. This admission ruins Proctor's reputation and makes him an easy target for Abigail and the other accusers.
In the end, Proctor is executed for witchcraft. His death is a direct result of his breaking the commandment "Thou shalt not commit adultery." This shows that even in a society where people are supposed to be forgiven for their sins, there are some sins that are unforgivable.