We shall need the following fact:
Fact. Let $I_n=[a_n,b_n]\subset(0,\infty)$ be a sequence of nontrivial closed intervals with $\,a_n\to\infty$,
and $K$ an infinite subset of $\mathbb N$, and let $S_K$ be the set
$$
S_K=\Big\{x\in(0,\infty) : \text{$nx\in \bigcup_{k\in K} I_k$
for infinitely many $n\in\mathbb N$}\Big\}.
$$
Then $S_K$ is dense in $(0,\infty)$.
Further, if $K, L\subset \mathbb N$, with $|K|=|L|=\aleph_0$, then $S_K\cap S_L$ is also dense in $(0,\infty)$.
We postpone the proof of this fact. Clearly, for every $\,x_0\in(0,\infty)$
$$
\liminf_{x\to\infty}\, f(x) \le
\lim_{n\to\infty}\,f(nx_0)\le
\limsup_{x\to\infty}\, f(x).
$$
Hence, if $\lim_{x\to\infty}\,f(x)$ does NOT exist, then we can pick
$\,A,B \in\mathbb R$, such that
$$
\liminf_{x\to\infty}\, f(x) < A < B < \limsup_{x\to\infty}\, f(x).
$$
There exist sequences $\{x_n\}, \{y_n\},$ with $x_n\to\infty, y_n\to \infty$, $f(x_n)\to \liminf_{x\to\infty} f(x)$ and
$f(y_n)\to \limsup_{x\to\infty} f(x)$. These sequence can be chosen so that
$$
f(x_n)<A<B<f(y_n), \quad n\in\mathbb N.
$$
Due to the continuity of $f$ it is possible to define nontrivial closed intervals $I_n=[a_n,b_n]$, such that
$\,x_n\in(a_{2n-1},b_{2n-1}),\,y_n\in(a_{2n},b_{2n}),$ and
$$
f\,\big|_{I_{2n-1}} <A\quad\text{while}\quad f\,\big|_{I_{2n}} >B,
\quad \text{for all $\,n\in\mathbb N$}.
$$
Due the Fact, there exists a dense set of points $x$, with the property
that, for infinitely many $n$'s the multiple $nx$ belongs to $\bigcup_{k\in\mathbb N} I_{2k-1}$, and for infinitely many $n$'s the multiple $nx$ belongs to $\bigcup_{k\in\mathbb N} I_{2k}$.
This in turn implies that $\lim_{n\to\infty}f(nx)$ does not exist, for every such point.
Proof of the Fact. Let $[c,d]\subset(0,\infty)$. We shall prove that
there exists an $x\in [c,d]$, such that for infinitely many $n$ the multiple
$nx$ belongs to an interval of the form $I_k$, $\,k\in K$, and for
infinitely many $n$ the multiple $nx$ belongs to an interval of the form
$I_\ell$, $\ell\in L$.
Observation. If $\,a_m > \big(\frac{1}{c}-\frac{1}{d}\big)^{-1},$
and $\,N=\left\lfloor\frac{a_m}{d} \right\rfloor+1,\,$ then $[c',d'] = \frac{1}{N}[a_m,b_m]\cap [c,d]$
is a nontrivial interval.
To establish this observation, it suffices to show that
$\displaystyle\frac{a_m}{N}=\frac{a_m}{\lfloor\frac{a_m}{d}\rfloor+1}\in (c,d)$. Clearly,
$$
a_m > \frac{1}{\frac{1}{c}-\frac{1}{d}}
\,\,\Longrightarrow\,\, \frac{1}{c}>\frac{1}{a_m}+\frac{1}{d}
\,\,\Longrightarrow\,\, \frac{1}{\frac{1}{a_m}+\frac{1}{d}}>c
$$
and hence
$$
c<\frac{1}{\frac{1}{d}+\frac{1}{a_m}}=
\frac{a_m}{\frac{a_m}{d}+1} \le
\frac{a_m}{\lfloor\frac{a_m}{d}\rfloor+1} < \frac{a_m}{\frac{a_m}{d}}=d,
$$
and therefore, $\displaystyle
[c_1,d_1] = \frac{1}{N}[a_m,b_m]\cap [c,d]$
is a nontrivial interval.
This observation allows us to recursively define a sequence of nontrivial
closed intervals $J_n=[c_n,d_n]$, where $[c_0,d_0]=[c,d]$, $[c_1,d_1]=[c',d']$, and we pick
the $a_m$'s, so that the first one is in $K$, the next in $L$, the next in $K$ and so on. In
this way we have a sequence of closed intervals
This is based on the observation that, if $a_n$ is
sufficiently large, then
$$
[c',d']=\frac{1}{N}[a_n,b_n]\cap[c,d]\quad\text{is a nontrivial interval},
$$
for $N=\lfloor a_n/d\rfloor+1$. This allows us to recursively define a sequence of nontrivial
closed intervals $J_n=[c_n,d_n]$, where $[c_0,d_0]=[c,d]$, $[c_1,d_1]=[c',d']$, and we pick
the $a_n$'s, so that the first one is in $K$, the next in $L$, the next in $K$ and so on. In
this way we have a sequence of closed intervals
$$
J_0\supset J_1\supset\cdots\supset J_n\supset J_{n+1}\supset\cdots.
$$
Clearly $S=\bigcap_{n\in\mathbb N} J_n\ne\varnothing$, and for each $x\in S$, infinitely
many multiples belong to $I_k$'s, $k\in K$, while infinitely
many multiples belong to $I_\ell$'s, $\ell\in L$.