You can buy tickets up to the start time of a time slot, if they are not sold out. 

You MUST enter the farm by 5pm.