Q.How Do Prevent Ants Crawling Up My Fruit Trees And Eating The Fruit?
Trees only two years old , cherry & apple

Certified GKH Gardening Expert
Usually ants invade trees to feed on microscopic insects and aphids. Here's an article that will help you resolve the problem:
https://www.gardeningknowhow.com/plant-problems/pests/insects/controlling-aphids-and-ants.htm
You may want to attack the ant problem from the other direction by spraying your trees to get rid of insects:
https://www.gardeningknowhow.com/edible/fruits/fegen/fruit-tree-spraying.htm