Middle-aged men who eat seven or more eggs per week may have a heightened risk of early death, according to a new study.

Researchers at Brigham and Women’s Hospital and Harvard Medical School found that men could eat up to six eggs per week without a an extra risk of death, but the seventh egg was associated with an almost 25 percent greater risk of death.

However, the researchers found that men with diabetes who ate any amount of eggs doubled their risk of death.

For men without diabetes, the researchers stress that eggs can be part of a heart-healthy diet if eaten in moderation. Eggs contain much-needed protein, and they are packed with important vitamins such as vitamin A, D and E. To limit your egg intake, swap in low-fat meat or beans to your early-morning meal. Fruits and veggies can serve as substitutes for the vitamins.