Many people are confused about when to eat fruit. In fact, as long as the total energy from food does not exceed your needs, just eat fruit when you feel like it! As long as your stomach feels comfortable, you can eat it at any time.
Eating fruit before a meal is fine, as long as it's not a particularly sour or astringent fruit. Eating fruit at this time helps fill your stomach, creating a feeling of fullness and reducing your food intake for the next meal, which is most beneficial for weight control.
Eating fruit during a meal is perfectly fine. You can use it as an ingredient in dishes or have a small portion as a dessert. It should be noted that if you are substituting fruit for some vegetables, keep in mind that fruit has slightly higher energy content, so you need to be mindful of the total energy for that meal.
Whether you should eat fruit two hours after a meal can be decided based on your personal feelings. If you ate a large meal and feel very full, you can eat the fruit later. If you didn't eat much and the meal wasn't too greasy, and your stomach can accommodate more food, then it's fine to eat fruit right away.