The Witr prayer is valid if performed anytime between the performance of Isha and entering the Fajr prayer.