I have the feeling that the internal zenner diodes will keep your lower side of the resistor to 5V+ even if you force it in input mode so the transistor will never turn OFF completely. Playing with the two resistors values will only get you a reliable ON status of the transistor but never fully OFF.

Regards,

Nick