Regardless of whether you're taking significant doses (>10mg a day) of amphetamines for recreational, medicinal, or utilitarian purposes, trying to stay up all night on them is one of the worst things you can do regarding taking amphetamines, next to not eating frequently enough. That's when the serious psychological and physical side effects come into play, and being too tired to function the next day can lead to users taking more and more amps to stay awake, and before you know it, you're dealing with serious anxiety and physical exhaustion, or paranoia/hallucinations in extreme cases.
Don't be stupid when taking amphetamines: eat a nutritious meal regularly, drink a good amount of water, take some vitamins, and get your ass to sleep. All that dopamine released while on amphetamines needs a good sleep cycle to replenish.