The gates at the park close very early, 4pm, starting in late October and into spring. The park itself is sunrise-to-sunset. There are quite a few spots to pull over and park outside the gates, especially on the east side of Reservation Road and along Rte 5.
You can check hours on the park’s website: https://www.mass.gov/locations/mount-tom-state-reservation