Remark: In the following $L(x)$ is understood as
\begin{equation}
L(x) = \{y \in \mathbb{R}: \text{exists a sequence} \{x_n\}\text{s.t. } x_n \to x, x_n\ne x\ \forall n, \text{ and } f(x_n) \to y\}.
\end{equation}
We call this "narrow $L(x)$". If $L(x)$ is understood as
\begin{align}
L(x) = &\{y \in \mathbb{R}: \text{exists a sequence} \{x_n\}\text{s.t. } x_n \to x,\\ & \underline{\text{we do not require }} "x_n\ne x\ \forall n", \text{ and } f(x_n) \to y\},
\end{align}
then this more general $L(x)$ is the union of $\{f(x)\}$ and the narrow $L(x)$, since if $x_n\equiv x$ for all $n$ then $f(x_n)\equiv f(x)$. It is immediate that closedness of narrow $L(x)$ implies closedness of general $L(x)$, since the latter is the union of narrow $L(x)$ (closed) and one-point set $\{f(x)\}$.
We ${\color{violet} {\text{claim}}}$
$u\notin L(x)$ $\iff$ exists $(u_1,u_2)\ni u$ a neighbourhood of $u$,
and $(c,d)\cap [a,b]$ a neighbourhood of $x$ in $[a,b]$, s.t. the set
\begin{equation*}
\{y\in (c,d)\cap [a,b]-\{x\}: f(y)\in (u_1,u_2) \}
\end{equation*}
is finite. (The proof is added at the end of the answer).
Therefore any $v\in (u_1,u_2)$ is neither an element of $L(x)$ (Apply the above statement to ${v}\in (u_1,u_2)$ and $(c,d)\cap [a,b]$). Therefore $\mathbb{R}-L(x)$ is open, i.e. $L(x)$ is closed.
Proof of the ${\color{violet} {\text{claim}}}$:
($\implies$): Assume for all $(u_1,u_2)\ni u$ and $(c,d)\cap [a,b]$, the set
\begin{equation*}
\{y\in (c,d)\cap [a,b]-\{x\}: f(y)\in (u_1,u_2) \}
\end{equation*}
is infinite. Then it is a fortiori non-empty. Take $(u_1,u_2)=\left(u-\frac{1}{n},u+\frac{1}{n}\right)$ and $(c,d)=\left(x-\frac{1}{n},x+\frac{1}{n}\right)$ and select a real number in
\begin{equation*}
\left\{y\in \left(x-\frac{1}{n},x+\frac{1}{n}\right)\cap [a,b]-\{x\}: f(y)\in \left(u-\frac{1}{n},u+\frac{1}{n}\right) \right\}.
\end{equation*}
Denote the real number we select corresponding to $n$ by $x_n$. Then
\begin{equation*}
\begin{cases}
\mid x_n-x \mid<\frac{1}{n}\\
\mid f(x_n)-u \mid <\frac{1}{n}.
\end{cases}
\end{equation*}
Therefore $x_n\to x$ and $f(x_n)\to u$, which contradicts the hypothesis.
($\impliedby$): Since there are finitely many $y\in (c,d)\cap [a,b]-\{x\}$ s.t. $f(y)\in (u_1,u_2)$,
we can construct a smaller interval $(c_1,d_1)$ contained in $(c,d)$ s.t.
\begin{equation*}
\{y\in (c_1,d_1)\cap [a,b]-\{x\}: f(y)\in (u_1,u_2) \}=\varnothing.
\end{equation*}
Then for all $\{x_n\}$ converging to $x$, exists $N$ s.t. $x_n\in (c_1,d_1)\cap [a,b]-\{x\}$ for all $n>N$.
But for all $n>N$, since $x_n\in (c_1,d_1)\cap [a,b]-\{x\}$, we must have $f(x_n)\notin (u_1,u_2)$.
Therefore $f(x_n)\not\to u$.
Since $\{x_n\}$ is an arbitrary sequence converging to $x$, we must have $u\notin L(x)$.