The egg technically isn't alive, it would be the embryo inside the egg that would be considered alive, but the advice "en is used for living things" is more a rule of thumb than a fixed rule. It's usually best to just learn the gender of the noun along with the noun.