You cannot take the Bible literally, otherwise you could make a lot of contradictions and you also misinterpret it a lot. The best way to look at the bible is contextually, look deeper than the actual words that are there.
For example, the story of Moses walking in the desert for 40 years, that's impossible. No one could survive that long. But... the number 40 has a special meaning. In Hebrew, 40 means "a very long time" so you could say "Moses wandered the desert for a very long time"
Same goes with every other Biblical story. 666 does not mean the devil. In Hebrew, 666 spells "Ceasar Nero" who was the anti-Christ of his time. He blamed the Christians for everything. So you can't say "Well science says that we were created by the big bang so the Bible is wrong" because they have to somehow relate to each other