Deuteronomy 5:31, Moses wrote down everything that God commanded without departing from it. In Deuteronomy 4:2, it is a sin to add to or subtract from the law, and Jesus was sinless, so he did not makes changes to it. The issue was that the command an eye for an eye was only given to judges to help ensure fair sentencing where the consequence did not escalate out of proportion to the offense, and vengeance belongs to the Lord, so it was not intended to be used in personal situation to justify people taking vengeance into their own hands. Rather, it personal situations, we are instructed not to repay in kind (Proverbs 24:17-19, Proverbs 25:21-22).