Could be a fruit tree of some sort. Obviously an apple tree or a crab apple tree. Pictures would help. So would geographical information on where do you live and the
zone. Even late-blooming camellias could produce a fruit that looks like an apple (but it contains
seeds instead).