Shaving help!

Does anyone know good tips on how to avoid having bumps, spots and cuts after shaving? It’s summer now so it’s that time where I have to shave and it’s not going too well.... help please? Thank you!