Side rails should be used based on a comprehensive assessment of the patient's condition. They are particularly important for patients who are at high risk of falls, such as those with mobility issues, certain cognitive impairments, or those receiving medications that impair their balance or judgment.