St Johnstone ‘must stay in the race’ to keep survival hopes alive