Stop before exhaustion

If you want to stay motivated in your work in the long term,
avoid working until exhaustion.

Stop working at the moment
you think you could still work more.

And you will find that the next day,
you have a lot more motivation to work.