The phrase "they know not what they do" is a classic expression meaning people are unaware of the consequences of their actions. It is famously from the Bible, Luke 23:34, where Jesus says, "Father, forgive them; for they know not what they do."