Hartshorne, Algebraic Geometry, Lemma II.5.3 reads (roughly):
Let $X = \operatorname{Spec} A$, let $f \in A$, and let $\mathscr{F}$ be a quasicoherent sheaf on $X$.
(a) If $s \in \Gamma(X, \mathscr{F})$ with $s|_{D(f)} = 0$ then $f^n s = 0$ for $n \gg 0$.
(b) If $s \in \Gamma(D(f), \mathscr{F})$ then $f^n s$ extends to all of $X$ for $n \gg 0$.
The proof essentially amounts to clearing denominators.
I'm trying to get a good picture of exactly what this is ruling out, but I don't have a great mental picture of a (obviously non-quasicoherent) sheaf where (a) and (b) don't hold. Are there any good examples to think of?