We will prove the contrapositive: a walk that is not a trail cannot be an open path. So suppose is a walk in a graph, and that traverses edge twice.
Case is a loop.
Then passes through the vertex incident to at least three times, hence is not a path.
Case is not a loop.
Write Initially, there are two possibilities to consider. If each of the two assumed traversals of moves from to then passes through each of at least twice, and hence is not a path. If the two assumed traversals of move to and to respectively, then passes through at least twice. If traverses twice because it both starts and ends there, then is not open. If is open and traverses twice, then is not a path. So in any case, is not an open path.