Here excerpt from a book:
Аssume that $f$ satisfies $\nabla f(x) \ge 0$ for all $x$, but is not nondecreasing, i.e., there exist $x,y$ with $x < y$ and $f(y) < f(x)$. By differentiability of $f$ there exists at $t\in[0,1]$ with
$$\frac{d}{dt}f\left(x+t(y−x)\right) =\nabla f\left(x+t\left(y−x\right)\right)^T(y−x)<0.$$
I don't understand why the derivative is less than zero? The function could look like on the image.

The book is Convex Optimization by Stephen Boyd and Lieven Vandenberghe, page 109.