Not recommended for extended sessions. Safe for short bursts, but introduces avoidable risks.
Charge during breaks. Play on battery. The DS Lite/DSi/3DS all get 5–10 hrs per charge—plan around that.
If your battery dies in <2 hrs, replace it ($10–15 OEM). Cheaper than a fried charging circuit.