It's good to sleep when you are tired.
Eric has an exam in a few days and hasn't studied at all.
Eric wants to study hard the night before the exam.
Eric studies intensely the night before and then gets some sleep too.
Eric pops caffeine pills all night long studying.
Eric stays awake during the exam and does better.
Eric falls asleep during the exam.