Past Bedtime
You will mess up your sleep cycle for the next day which makes it not a productive approach to work. As you won't be even close to your peak performance the next day. The hours that you put in at night past your bedtime will also be suboptimal.
Also consider Bryan-Johnson's advice on Bryan Johnson on Sleep.