How is the passage in acts out of context? The bereans made sure that everything they heard corresponded with the Bible. The Bible being God’s inspired word and the plumb line for truth.
2 Timothy 3:16-17
All Scripture is inspired by God and profitable for teaching, for reproof, for correction, for training in righteousness; so that the man of God may be adequate, equipped for every good work.