According to Avos d'Rebbe Nassan 1:8 and Sanhedrin 38b, Adam was brought into Gan Eden in the ninth hour, was commanded not to eat in the tenth hour, ate in the eleventh hour, and was kicked out in the twelfth hour.
Does this mean that had Adam eaten during the ninth hour he would have had the "knowledge of good and bad" without sinning?