Does "before going to bed" include staying up all night?

You 're not supposed to eat fruit "before going to bed" but what if I stay up all night ? Am I going to dye or something
2 answers 2