You can just show that the function $f_A(x)=d(x,A):X\longrightarrow\mathbb{R}_+$ is continuous (clearly $A$ is assumed non-empty). This follows since $|f_A(x)-f_A(y)|\leq d(x,y)$ (mathematicians call such function Lipschitz continuous with constant 1, just so you know). Indeed for any $a\in A$, $d(x,a)\leq d(x,y)+d(y,a)$ and so, taking the $\inf_A$ gives $f_A(x)\leq d(x,y)+d(y,a)$. Rearrange to $d(y,a)\geq f_A(x)-d(x,y)$. Taking $\inf_A$ again yields $f_A(y)\geq f_A(x)-d(x,y)$ and so $f_A(x)-f_A(y)\leq d(x,y)$. There is nothing special about the order of $x,y$ as $d(x,y)=d(y,x)$ so reversing their roles in the previous conclusion gives also $f_A(y)-f_A(x)\leq d(x,y)$. Hence $|f_A(x)-f_A(y)|\leq d(x,y)$. This means $f_A$ is continuous, as you can just take $\delta=\epsilon$ in the definition of continuity. The continuity of $f_A$ directly implies your claim (by the sequential definition of continuity, if you want).