Text this: 3D CMZ. IV. Distinguishing Near versus Far Distances in the Galactic Center Using Spitzer and Herschel