@MartinSleziak So you mean that it is as follows?
Since $X \setminus{ \overline{A}}$ is open, there is an $\epsilon>0$ such that $B_{\rho}(x, \epsilon) \subset X \setminus{ \overline{A}} \Rightarrow \{ y \in X: \rho(x,y)< \epsilon \} \subset X \setminus{\overline{A}}$.
If $a \in A$ then $a \notin X \setminus{\overline{A}}$, so $a \notin \{ y \in X: \rho(x,y)< \epsilon \} \Rightarrow \rho(x,a) \geq \epsilon \Rightarrow \inf \{ \rho(x,a) \geq 0: a \in A\} \Rightarrow d(x,A) \geq 0$