PLEASE HELP ME!

Ever since I first started shaving I've always had razor burn on the back of my thighs and on my inner thighs how can I prevent this?