Atacama Cosmology Telescope: Constraints on prerecombination early dark energy