Let $f$ be a Lebesgue measurable function defined on a set $E\subset \mathbb{R}^d$. Let $\{x\in E\mid f(x)\neq 0\} $ be the support of the function on $E$.
Stein and Shakarchi claim without proof that the support is measurable. But why is this true? It's not just due to the fact that the support is a subset of a measurable set.
The support is usually defined as the closure of that set, but I'll answer your specific question.
Note that your set is precisely $$f^{-1} ((-\infty,0)\cup (0,\infty))=f^{-1}((-\infty,0))\cup f^{-1}((0,\infty)).$$ Now, just recall the definition of a Lebesgue measurable function.