Cosmological constraints on dark energy in light of gravitational wave bounds