The drop in blood sugar level makes you feel hungry soon after exercising, which will make your fasting window more difficult to get through.
Therefore working out in the evening within your eating window is a good idea because you will be more fuel to perform higher intensity exercise.
I recommend planning your workout 1-2 hours before your last meal before fasting. For example, if you start fasting around 8 PM, do your workout around 5-6 PM, eat soon after and finish your meal before 8 PM.