Razor burn & ingrown hairs

Tyler
I use a men's razor and shaving cream because I read it is supposed to help prevent razor burn and ingrown hairs... but I still get them! I scrub with a loofa before hand, and I put lotion on after, BUT I STILL GET RAZOR BURN AND INGROWN HAIRS! Help!!