Serling was never above "borrowing" plots and situations now and then. Not plagiarism, you understand, just a little "deriving." Sort of like the Milton Berle of drama.
This episode, for example, has always reminded me of the Nelson Bond tale, "Johnny Cartright's Camera," published in 1940 (Unknown magazine) and anthologized in Mr. Mergenthwirker's Lobblies and Other Fantastic Tales (1946).
A small-time second-story man and his wife discover, in the swag from their latest heist, a camera that takes Polaroid-style photographs of events occurring five minutes in the future. As always, there's a hitch. The camera will deliver only ten snapshots to a customer, and several shots are wasted before the hapless owners learn this fact.
The fun starts after the thieves make a big score at the racetrack.
Bond's story was played mostly for laughs while Serling, as he generally does, goes for the moral object lesson.
Mildly amusing and worth watching.