Massive elliptical galaxies in X-rays: The role of late gas accretion