How do the events of Cain’s discovery and punishment by God (Gen 4:9-16) unfold in a way similar to those of the Fall of Adam and Eve?

God begins with an arraignment—with a question to which he shows, almost immediately, he knows the answer. Then the same question: “What have you done?” He is sentenced in a way that makes his work even harder; he is exiled, sent even farther away from God’s presence; and then there is a reprieve from the worst of consequences, when he is marked in some way that will prevent him from being killed.