If either Eid prayer is performed before the sun completely rises, then the prayer does not count as the Eid prayer.
It counts as a nafl prayer and one is sinful for praying within a prohibitively disliked time.