$$
f(x) = \sqrt{x^2+1}
$$
is a counterexample for the first case. The derivative satisfies
$$
-1 < f'(x) = \frac{x}{\sqrt{x^2+1}} < 1 \, ,
$$
but $f$ has no fixed point since $f(x) > |x| \ge x$ for all $x \in \Bbb R$.
Generally, for case 1 one can start with any (continuous or integrable) function $h:\Bbb R \to \Bbb R$ which satisfies
- $0 < h(x) < 2$ for all $x \in \Bbb R$, and
- $\int_0^\infty h(t)\, dt < 1$.
Then $f(x) = 1+x-\int_0^x h(t)\, dt$ has the derivative $f'(x) = 1-h(x) \in (-1, 1)$, but
$$
f(x) - x = 1 - \int_0^x h(t)\, dt
$$
is strictly positive for all $x$.
Similarly, for case 2 one starts with a function $h$ satisfiying
- $h(x) > 1$ for all $x \in \Bbb R$, and
- $\int_{-\infty}^0 h(t)\, dt < 1$.
and sets $f(x) = 1+x+\int_0^x h(t)\, dt$.
Remark: If $|f'(x)| \le k < 1$ or $|f'(x)| \ge k > 1$ for some constant $k$ then $f$ has a fixed point. So any counterexample must have a derivative which takes values arbitrarily close to $1$ or $-1$.