Problem
Suppose $f$ is a function from a complete metric space $X$ to a metric space $Y$, and suppose $Y$ has points $y_{0}$, $y_{1}$ such that the subsets $f^{-1}(y_{0})$ and $f^{-1}(y_{1})$ are both dense in $Y$.
Show that in the above situation, if $f$ maps every point of $X$ either to $y_{0}$ or to $y_{1}$ and if $f^{-1}(y_{1})$ is countable, then $f$ cannot be expressed as a pointwise limit of functions $X \rightarrow Y$ that are continuous at all points of $f^{-1}(y_{1})$; but that it can be expressed as a pointwise limit of functions $X \rightarrow Y$ that are continuous at all points of $f^{-1}(y_{0})$.
Question
It is well known by the Baire category theorem that $f$ can not be a pointwise limit of continuous functions $X \to Y$. However, I have no clue how to prove $f$ can not be a pointwise limit of functions being continuous at a dense set $f^{-1}(y_{1})$. Moreover, I think the "countable" condition is redundant for the first part since it has been proved that if $f$ is continuous on a dense set, then it is continuous on an uncountable dense set (e.g., see Theorem 1 in 1).
Also, I believe the "countable" condition is only helpful for the 2nd part as follows,
Assume $f^{-1}(y_{1}) = \{x_{1},x_{2},\ldots\}$.
Construct \begin{equation*} f_{n}(x) = \begin{cases} y_{0}, & x \in f^{-1}(y_{0}) \cup \{x_{n+1}, x_{n+2},\ldots\} \\ y_{1}, & x \in \{x_{1},x_{2},\ldots,x_{n}\} \end{cases} \end{equation*} It is easy to check $(f_{n})$ is continuous at $f^{-1}(y_{0})$.