$A=(x+1)(x-3)+2x-5=x^2-2x-3+2x-5=x^2-8 \\ x+1 > 2x-5 \Rightarrow x<6 \\ x_{max}=5 \Rightarrow A_{max}=17$