Demo and add-on content for the DS is distributed through the Nintendo Wi-Fi Connection and the shop channels built into supported games — that is the legitimate route, and it is free.
Torrent sites are sometimes suggested for full retail games, but downloading commercial titles that way is piracy, and files from those sources are a common way to end up with malware. Retail stores and second-hand sellers remain the right answer for buying games.