Earth is not too close to the sun:
Planet Earth lies in the
habitable zone of our solar system. This zone is the region that lies at a suitable
distance from the sun where a planet is able to sustain liquid water, being neither too close for it all to be vaporized into a thick and heavy atmosphere (such as Venus), nor too distant so that it all freezes and the atmosphere becomes thin (such as Mars).