Continuing from what you have we need to prove that $\frac{(d-2)|V|+2}{d-1} \ge d$. First note that $|V| \ge d+1$. This is true as a non-pendant vertext has to be connected to $d$ other distinct vertices (no cycles in tree). "+1" comes from the non-pendant vertex. Therefore:
$$x \ge \frac{(d-2)|V|+2}{d-1} \ge \frac{(d-2)(d+1)+2}{d-1} = \frac{d^2-d - 2 + 2}{d-1} = d$$
Hence the proof.