Please help..

So I have an awful razor burn and weird bumps down there from shaving yesterday. The irritation is super painful and annoying and I can't figure out why it happened this time or how to prevent it. Is there a way to completely prevent it, or just a way to make it less severe? Please help.