Shaving down there

I've tried shaving with a razor just around my bikini line but not anything more but every time I do it leaves red bumps so it looks grim, but when I do the exact same thing to my legs they look fine... what am I doing wrong?