[step:Convert a finite small-ball cover into a finite small-diameter cover]
Assume that $A$ is totally bounded in $M$, and let $\varepsilon > 0$. Define
\begin{align*}
r := \frac{\varepsilon}{3}.
\end{align*}
Since $r > 0$ and $A$ is totally bounded, there exist an integer $N \geq 0$ and points $x_1,\dots,x_N \in M$ such that
\begin{align*}
A \subset \bigcup_{i=1}^{N} B(x_i,r),
\end{align*}
where
\begin{align*}
B(x_i,r) := \{z \in M : d(z,x_i) < r\}.
\end{align*}
For each index $i \in \{1,\dots,N\}$, define $E_i := B(x_i,r)$.
Then $\{E_1,\dots,E_N\}$ is a finite cover of $A$ by subsets of $M$. If $u,v \in E_i$, then the triangle inequality gives
\begin{align*}
d(u,v) \leq d(u,x_i) + d(x_i,v) < r + r = \frac{2\varepsilon}{3} < \varepsilon.
\end{align*}
Taking the supremum over all $u,v \in E_i$ gives
\begin{align*}
\operatorname{diam}_d(E_i) \leq \frac{2\varepsilon}{3} < \varepsilon
\end{align*}
for every $i \in \{1,\dots,N\}$. Hence $A$ admits a finite cover by subsets of diameter less than $\varepsilon$.
[/step]