The small red lima beans that are grown in Asia contain 20 to 30 times more cyanide than the white varieties. Boiling lima beans in a pot with no lid releases the harmful cyanide poison as a gas. Eating small amounts of raw, green, sprouted or roasted limas is probably not harmful, but these are not the safest ways to eat the beans. Eating too many raw limas can cause abdominal cramping, diarrhea and vomiting. High levels of cyanide prevent oxygen from getting into blood and can cause death.
Apples are fine, it's their seeds that can be toxic.
So are the seeds of pears, peaches, apricots and plums. Eating the seeds is rarely a problem, unless you eat dozens. The bark and roots are a source of antibiotics for treating bacterial infections. Apple seeds contain cyanide. Eating a few might give you a stomach ache but shouldn't be dangerous.