Ring of Mind Shielding or Mind Blank make you immune, nondetection forces an opposed CL check (which you usually fail when it matters unless you have a lot of CL boosters).
Since Rakshasa are CR 10 the ring is probably the only solution that's viable for you. You can upgrade to Mind Blank later since it's pretty much a necessity at higher levels anyway.