Sri Lanka must win the last two matches to salvage any chance of automatic qualification for the 2019 ODI World Cup.