Characterizing Massive Star-Forming Galaxies across the Cosmic Time through ALMA and JWST NIRCam Grism Spectroscopy