"Pineapple" is the old name for pinecone in English. "Apple" is the catch all word for fruit (which pinecones are technically not but that's how catch all it was). That's why pinecones are called pineapple. What we call now pineapple was called that way because it looks like a pinecone
Also, that's part of the reason everyone pictures the fruit of Eden as an apple. In the original script it doesn't even say apple anywhere, just fruit.
If I remember correctly, and my Latin lessons are long ago, apple is malūs while evil is malus and the macron isn't written in ancient texts. So reading the Latin version makes the evil fruit an apple