I think the Bible is a history of how people used to think and react to particular situations. If you'll indulge me in another illustration: suppose that little Johnny (5 years old) is afraid to go to sleep because he is afraid of monsters. Crying and in clear distress, Johnny asks his father: "dad, can you please stand outside my door and if a monster tries to come in, you'll kill him?"
Johnny's Dad thinks it is futile at this particular time of night to try to convince his little boy that those monsters he saw on TV are not real. Instead, he takes an empty unlabeled spray bottle from the closet, fills it with water, and writes: SPECIAL MONSTER-KILLING SPRAY on the label. He tells Johnny "don't worry, son, I'll be outside this door with the special monster-killing spray, you're safe."
Fast forward 25 years later - Johnny - now John - is 30 years old and about to be married. He and his dad are in the attic, looking over old memorabilia, and his dad is going to give John some fatherly advice about married life. In their search, they find that old spray bottle from when Johnny was five, with the SPECIAL MONSTER-KILLING SPRAY label still attached to it. They both share a good laugh over that old memory.
Now, here's the analogy: IF Johnny were to write down his dad's wise advice about married life (such as: be good to your wife, treat her with respect and kindness, be quick to forgive, be loyal, be faithful, etc.), that would be like the WISE things written in the Bible (such as: turn the other cheek, love thy neighbor, with God all things are possible, etc.).
HOWEVER, if Johnny were ALSO to write down: "In case a monster tries to break in to our bedroom and kill my wife and me, I must always remember to keep a bottle of SPECIAL MONSTER-KILLING SPRAY on hand," then that would be like the portions of the Bible that sound (to me) as if they were interpreted by folks from Ancient times with limited knowledge, who seem utterly child-like to us today (such as: God and the Devil made a bet about how faithful Job would be, God didn't speak out against slavery altogether, just made sure that if you knock out your slave's tooth, you have to set him free, the only man good enough to survive the flood - Noah - disowned his son who dared to view Noah naked when Noah was drunk out of his mind, etc.).
So I think the Bible contains some of the truly WISE things that Jesus said, and much of the illogical primitive interpretations of like made by the folks at the time. Much like SPECIAL MONSTER-KILLING SPRAY.