It won't be dangerous, you might get overtimulated though. I used to be prescribed modafinil for a while and 200mg was just a nice wakefulness agent with a bit of motivation and light stimulation, but I took 400mg once and felt uncomfortable, just kinda like too much caffeine.
Modafinil really isn't recreational, it's good at what it does though.