But unto Cain and to his offering he had not respect. And Cain was very wroth, and his countenance fell. And the LORD said unto Cain, Why art thou wroth? and why is thy countenance fallen? If thou doest well, shalt thou not be accepted? and if thou doest not well, sin lieth at the door. And unto thee shall be his desire, and thou shalt rule over him.
Cain's anger is named, and God speaks to him about what he will do with it rather than about having it. The warning is that sin is crouching at the door and that he can master it. The murder comes in the next verse.