It's certainly a good idea to stop eating when you feel satisfied but I don't think you should worry about what you eat after a certain time, even if it is only several hours before you go to bed.
Just eat 6 small meals a day and make sure that you vary your
diet and don't omit any food groups. You need protein, good fats some carbohydrates and fibre to keep healthy.
By eating small meals regularly you shouldn't feel hungry. I don't have a weight problem but I do eat biscuits, chocolate and the occasional piece of cake with coffee near to bedtime and haven't suffered any ill effects!
Take care and good luck with your
dieting
Kathy Joyce