Warwickshire narrowly avoid follow on as match looks headed for a draw