The opposite of what rohnds said is true, at least as far as ammonia is concerned. Low pH makes ammonia less dangerous, high pH makes it very dangerous, because at a high pH more free ammonia is formed as the ammonium ions dissociate into ammonia and water. pH has no effect on nitrite toxicity, or nitrate toxicity as far as I know.