Now, if any function with a domain with the discrete topology is continuous, couldn't we pick $\delta$ to be a step function from $p$ to $q$, where $\delta(0)=p$ and $\delta(1)=q$, and have the topology on $[0,1]$ be discrete?
Then this choosen function would be continuous. But since $p$ and $q$ are arbitrary, we could always pick such a function for any $A$ or $X$. So every $A$ would be path connected, which I don't think is correct.