How do i get a really close shave?

So i have a safety razor but i cant seem to completely remove my mustache n like i fucking hate it. It makes me feel so gross like honestly. If i dont shave the right way my upper lip gets all red and rashy and looks terrible ahhh idk i cant winn