nitrate itself isn't harmful, people just use it as a guide to say when the other chemicals like pheromones that we cant test for are getting too high. the rule of thumb (or so I've heard) is to keep nitrates below 20ppm, but if you have a messy tank, such as a carnivore tank, then letting it go to 50 shouldn't be a problem.
nothing really fends it off (except waterchanges) id not worry about Nitrates themselves, just the fact that when they are high, its time to do a waterchange because of all the other stuff that is in the tank