I think this is the situation going into next week.

we will be in the top six if
- we win
- we draw so long as both Hibs (at Hearts) and Ross County (at Aberdeen) don't win
- we lose but Hibs also lose (at Hearts) and Aberdeen v Ross County is a draw