Our best tip is to not download any free MP3 or MP4 files from unknown sites. If you're teased into a deal for free music or anything, be sure to avoid it.
That said, there's no real way of entirely avoiding Stagefright 2.0 as it can be placed within third party apps. Your best bet is to not download any apps you're uncertain of right now.