Try to eat a healthy dinner and wait 1-2 hours before going to sleep.
Having dinner just bedtime can negatively affect the quality of sleep and rest.