Look Before You Leap: Enhancing Attention and Vigilance Regarding Harmful Content with GuidelineLLM