The Exercise
Consider the equation $x'(t)=f(t,x)$, where $f$ is continuously differentiable on $x,t$ and periodic in $t$. If there are constants $p,q$ such that $f(t,p)>0,f(t,q)<0$ for all $t$, then there is a periodic solution $x(t)$ such that $p<x(0)<q$.
The Attempt
From the middle value theorem, there exists a function $y(t)$ such that $p<y(t)<q$ and $f(t,y(t))=0$ for all $t$. Since $f(t,y(t))=0$ for all $t$, $y$ is an equilibrium solution to the equation $x'(t)=f(t,x)$. Therefore, $y(t)=k$, a constant.
Note that, since $p<q$, $\partial_xf(t,x)|_{x=k}<0$ for all $t$. Then, $k$ is a sink. Now, since $f$ is periodic, the equation allows for some periodic solution $x(t)$ orbiting around $k$. We may set $x(0)=k$, so that $p<x(0)<q$.
The Problem
The second paragraph seems sketchy to me, rather than rigorous, but I can't see what I might be missing here.