Here is a proof of $(1) \Rightarrow (2)$.
We have to show that $A \subset X$ is closed if for each continuous $c : \mathbb R \to X$ the preimage $c^{-1}(A)$ is closed in $\mathbb R$.
So let $A \subset X$ be a subset such that for each continuous $c : \mathbb R \to X$ the preimage $c^{-1}(A)$ is closed in $\mathbb R$.
$\{ \emptyset, X, X \setminus A \}$ is a topology on the set $X$; call the resulting space $Y$. Its closed sets are $\emptyset, X, A$. Now consider the identity function $f : X \to Y, f(x) = x$. We have $f^{-1}(A) = A$.
We shall show that $f$ is continuous which implies that $A$ is closed in $X$.
Let $c : \mathbb R \to X$ be continuous. We have $(f \circ c)^{-1}(A) = c^{-1}(f^{-1}(A)) = c^{-1}(A)$ which is closed in $\mathbb R$ by assumption. Since $(f \circ c)^{-1}(\emptyset) = \emptyset$ and $(f \circ c)^{-1}(Y) = \mathbb R$, the function $f \circ c$ is continuous. It follows from $(1)$ that $f$ is continuous.