Should I stop eating food with a certain timeframe before bed?

No, it does not matter at what time you start or stop eating. At the end of the day, calories in and calories out will dictate weight gain or weight loss, whether those calories are eaten all in the AM, PM, or spread evenly throughout the day. The only time it is recommended to not eat before bed is if it causes sleep disturbances.