If you do get a small cut, it's easy to stop the bleeding again. Rinse with cold water and then use an alum block or a drop of Shave Cut Healing Gel.
You can prevent the injury from happening by making sure your razor blade is always sharp. In addition, be careful not to press the razor hard against the skin when shaving, as this can cause cuts and scratches.