Anus shaving tips! HELP! 🙄

So I’ve shaved my anus before and I used shaving cream but then I went back over it after I showered and it burned for the next few days. Is there anything I can do to prevent that?