The phrase ‘between the cup and lip’ needs to be replaced with ‘between the cup and the lip’. It means a situation where things did not happen at the last minute the way they were expected to due to unforeseen reasons. Thus, the correct formation would be, ‘There is many a slip between the cup and the lip’.