Conscience is likely the right answer, but Lamech knew it was forbidden because of the penalty levied on Cain.
Genesis 4:23-24 KJV - And Lamech said unto his wives, Adah and Zillah, Hear my voice; ye wives of Lamech, hearken unto my speech: for I have slain a man to my wounding, and a young man...