If I work out late at night, like after 9 PM, let say 1AM at night, then I don't do the heavy or intense workout, Just some different lifts/reps right before going to bed. Especially when trying to attain ripps and cuts.
Otherwise I make sure I do workouts during day or evening. If I feel somewhat out of it, it's usually just a matter of warming up with more easy sets and always eat a few meals in the morning and it's only a matter of finding some lifts that you can still do.