To avoid decompression sickness and the harmful effects of nitrogen bubbles, deep-sea divers must ascend slowly and make decompression stops at specific depths. This allows the body to gradually release excess nitrogen and prevents the formation of dangerous bubbles.