The Four Sons

God also said he who is without sin cast the first stone.
He also said if a man lays with a man as with a woman they are to be put to death

Don't take what Jesus said out of context

He did not condone sin (as a Mather of fact, He came to free us from the slavery and penalty of sin)

The point of Him saying "let him that is without sin cast the first stone" was that we are to not take matters into our own hands and let justice take its course

God instituted government to administer that justice