Let $A$ be a subset of $\mathbb{R}$. Let $f$ be a function $A\rightarrow\mathbb{R}$. By "increasing" I mean nonstrictly increasing. But the case of strictly increasing is also interesting.
Are the following statements equivalent to each other:
For every $a\in A$ there is a $b\in\mathbb{R}$ such that $b>a$ and $f|_{A\cap [a;b[}$ is increasing.
For every $a\in A$ there is a $b\in\mathbb{R}$ such that $b>a$ and $f(x)\geq f(a)$ for every $x\in A\cap [a;b[$.
If not equivalent, do they become equivalent if $f$ is continuous? (We can for simplicity consider the variant if $A$ is an open interval.)