Ross County look acceptable for a Premiership relegation play-off aft a thrilling comeback was halted by Ryan McGowan's equaliser successful a 3-3 gully with St Johnstone.
Stevie May scored either broadside of half-time, archetypal with a curling effort and past from the punishment spot, to springiness the visitors a commanding pb successful Dingwall.
But County came roaring backmost with Yan Dhanda netting a spot-kick, Jordan White breaking the offside trap to level things up and Jack Baldwin hitting a stunner astatine the death.
However, McGowan had the last accidental to assertion a constituent that near County 3 supra bottom-placed Dundee United and 3 beneath third-bottom Kilmarnock, who they look successful their last crippled connected Sunday.
The Staggies' champion accidental aboriginal connected came courtesy of St Johnstone's goalkeeper, arsenic Ross Sinclair punched the shot consecutive to White earlier recovering good to smother the shot.
- How the teams lined up | Match stats
- Scottish Premiership table | Fixtures | Results
- Get Sky Sports | Get NOW to watercourse biggest moments
It was the visitors who took the pb done May, whose changeable bushed Ross Laidlaw and recovered the acold corner.
St Johnstone maintained the precocious manus into the 2nd half, wherever May turned and changeable from 25 yards, forcing Laidlaw to extremity the shot connected to the bar.
Shortly afterwards helium made it 2-0 from the punishment spot aft Nohan Kenneh had taken down Adam Montgomery.
That daylight betwixt the sides did not past agelong though, arsenic County went up the transportation and won a punishment of their ain courtesy of a handball by Cameron Ballantyne.
Dhanda stepped up to instrumentality it and powered his spot-kick past Sinclair and into the apical country to chopped the shortage successful half.
That got the Staggies' tails up and they began to pin St Johnstone heavy into their ain fractional arsenic they tried to find an equaliser.
Eventually that unit told as, successful the 69th minute, Kenneh mishit a changeable into the way of White who converted from adjacent scope and, aft a VAR cheque for offside, the extremity was allowed to stand.
In the 90th minute, an improbable root popped up with what looked similar a winner, with Baldwin smashing the shot into the bottommost country from 25 yards.
However, St Johnstone fought backmost heavy into 5 minutes of stoppage clip and Andy Considine thought helium had an equaliser erstwhile his header astatine a country deed the bar, lone for McGowan to travel up and find the net.
What the managers said...
Ross County brag Malky Mackay: "I thought we started rather well, and I'm reasonably blessed with the full archetypal half," Mackay explained.
"They caught america connected the antagonistic with their lone changeable connected goal, and (Stevie) May - who is simply a bully subordinate - scores.
"There are terrific blocks connected their enactment for 3 chances we had successful the archetypal half, truthful astatine half-time it was conscionable a lawsuit of asking for 10 per cent much vigor and we would beryllium fine.
"We suffer a truly lazy, sloppy tackle for the punishment to spell 2-0 down, but the tone that we showed successful the squad truly gave america the accidental to combat backmost into it again.
"We came backmost well, we pushed and probed, and we held our nervus to spell ahead.
"We suffer a sucker punch astatine the precise death, but successful the expansive strategy of things it changes thing with Kilmarnock winning. We cognize precisely what we've got to spell down determination and bash connected Sunday."
St Mirren brag Steven MacLean: "We were 2-0 up and cruising, and past we driblet our standards. We've acceptable standards implicit the past 4 games and been precise good, but past we stopped trying to triumph archetypal interaction and 2nd balls.
"We cognize those standards now, but I person to praise their quality due to the fact that we went close to the end.
"I'm conscionable disappointed to beryllium 2-0 up successful a crippled and not beryllium capable to spot it out.
"Fair play to County, they fought backmost and deservedly got backmost successful the crippled due to the fact that they enactment america nether a batch of pressure."
What's next?
Ross County's final Scottish Premiership crippled of the play is distant to Kilmarnock connected Sunday, portion St Johnstone big Livingston.
Both matches footwear disconnected astatine 12.30pm.