Two lines above, it was shown that ay + b > 0 when y < 3, and ay + b < 0 when y > 3. That literally means that it changes its sign at y = 3. And because it goes from positive to negative, it has to have a negative slope. Now this function is a simple straight line, so its slope = a, hence a must be negative.