1 John 4:6
We are of God: he that knoweth God heareth us; he that is not of God heareth not us. Hereby know we the spirit of truth, and the spirit of error.
Because of the indwelling of the Holy Spirit, who reveals the truth of the Scriptures to us, we are able to discern between truth and error. Our responsibility is to listen, as the Spirit gives us discernment, so we will not confuse error for the truth.