Help with finding a movie

It was an espionage movie from the 60’s. The man and woman had to live together as man and wife and ended up falling in love. At the end they were shot to death by railroad tracks.