In the Old Testament, when they will turn you from God. In the New, when they will turn you from Jesus Christ. These are the occasions for excluding particular miracles from belief. No others need be excluded.
Does it therefore follow that they would have the right to exclude all the prophets who came to them? No; they would have sinned in not excluding those who denied God, and would have sinned in excluding those who did not deny God.
So soon, then, as we see a miracle, we must either assent to it, or have striking proofs to the contrary. We must see if it denies a God, or Jesus Christ, or the Church.