To prevent razor burn when trimming pubic hair, it is important to take proper precautions. First, make sure to use a sharp razor and shave in the direction of hair growth. Additionally, it is important to use a moisturizing shaving cream to lubricate the area and reduce friction. Finally, it is important to rinse the area thoroughly with cold water after shaving and to apply an aftershave lotion to soothe the skin.