After some thinking I've come to the following conclusion.
Consider the initial value problem $$\text{(P)}\begin{cases}x'(t)=f(t,x(t)),\quad t\geq t_0\\x(t_0)=x_0 \end{cases}$$ where $f:D\subset\mathbb{R}^2\to\mathbb{R}$, $(t_0,x_0)\in D$. Suppose there are $t_1>t_0$ and continuous functions $L ,U:[t_0,t_1]\to\mathbb{R}$, such that $$(t_0,x_0)\in V:=\{(t,x)\in\mathbb{R}^2:t\in[t_0,t_1],\,L(t)\leq x-x_0\leq U(t)\}\subset D.$$ Suppose also there exist continuous $g,h:[t_0,t_1]\to \mathbb{R}$ such that for every $(t,x)\in V$ $$g(t)\leq f(t,x)\leq h(t)$$ and for every $t\in[t_0,t_1]$ $$L(t)\leq \int_{t_0}^{t}g(s)\,ds=,\quad \int_{t_0}^{t}h(s)\,ds\leq U(t).$$ Suppose also $f$ is Lipschitz in $x$ in $D$. Then there's a unique function $x$ defined on the interval $[t_0,t_1]$ that satisfies (P). Moreover it holds that $L\leq x-x_0\leq U$.
I'd like to know where this result was first stated (or a stronger version of it).