Notice that this is an if and only if statement, therefore we have two things to prove:
- If $T$ is a path, then $d(v) = 2$.
- if $d(v) = 2$ then $T$ is a path.
In your attempt, what you proved is the first argument (you assumed $T$ is a path and got a contradiction when you assumed $d(v)>2$. Obviously, $d(v) < 2$ is not possible with the constraint $n \ge 4$ so $d(v) = 2$). Induction is a nice way to prove the second argument. First of all, let $T_n$ be a tree with $n$ vertices and with maximum degree of a vertex $2$, where $n \ge 4$. For $n = 4$, there are only two possibilities for $T_4$ up to isomorphism as shown:

Since the second figure has a vertex with degree $3$, the first graph is $T_4$ and it is a path obviously. Now, suppose $n \ge 5$ and the argument holds for all $n$. Then in order to construct $T_{n+1}$ we need to add one more vertex to $T_n$. Since our conditions is not having a vertex with degree more than $2$, there are only two options where the last vertex can be added, namely the beginning and the ending of the path of $T_n$ (because otherwise, $T_{n+1}$ will have a vertex with degree $3$). But wherever we add the last vertex, either that vertex will be the beginning of the path of $T_{n+1}$ or the ending of the path, therefore, will construct a new path $T_{n+1}$. So $T_{n+1}$ is also a path and by induction, the argument holds for all $n$.