For he that said, Do not commit adultery, said also, Do not kill. Now if thou commit no adultery, yet if thou kill, thou art become a transgressor of the law.
He who said not to have an affair with someone else also said not to kill. So if you don't commit adultery, but still kill, you break the law.