This article discusses it. Evidently, this is a real episode.
This Television Show Predicted Donald Trump . . . in 1958
My favorite bit from the article:
The episode may not have predicted
everything about the ascendancy of Donald Trump: no bandit named Crooked Hillary enters town to retrieve secret telegrams, nor do gramophone recordings reveal that Walter Trump bragged about groping women while on a Wells Fargo wagon. (Nor, sadly, did Donald Trump ever wear a magician’s robe during the 2016 campaign—at least none that we know about.) Nevertheless, in a time where everything is unpredictable, it may be comforting to know that there was
some sign that prophesied the coming of President Trump and his wall.