Let $(X,\mathcal{A}, \mu)$ be an measure space. Let $f$ be an extended complex-valued $\mathcal{A}-$measurable function on $X$ such that $|f|<\infty$ $\mu$-a.e. on $X$. Suppose that $fg\in L^1(X,\mathcal{A}, \mu)$ for every $g\in L^q(X,\mathcal{A}, \mu)$. Show that $f\in L^{p}(X,\mathcal{A}, \mu)$. $(p>1, q>1, \frac{1}{p}+\frac{1}{q}=1)$
A similar problem I asked $fg\in L^1$ for every $g\in L^1$ prove $f\in L^{\infty}$
but I cannot find similar construction of counterexample in this case $f\notin L^p$. Almost the same problem Given $f\notin L^p$ find $g\in L^q$ s.t. $fg\notin L^1$, the construction given in the answer require $\mu(f\geq t)$ to be finite, but that is not a condition of the problem (nor can we derive from $f\notin L^p$).
Looking for an answer using little or no functional analysis technique.