Small things are fine, but not a huge calorie meal if you're going to bed soon afterwards. It's bad because after you eat your huge steak you will be just laying down and sleeping. You don't burn many calories while sleeping.
When you eat these things in the day, youre up and about, walking, working etc. You have hours ahead to help burn it off.