AFC Bournemouth opened up a two-goal lead in the first half through Evanilson and Alex Jimenez goals, the latter scoring his first goal for the club.
They were pegged back just before the break as Virgil van Dijk headed home from a corner, before Dominik Szoboszlai smashed home from range with ten minutes to play to equalise.
But the Cherries responded brilliantly to going behind and they won it in the most dramatic of fashions.
James Hill launched in a long throw in the final minute of the game, it wasn’t cleared and Adli managed to scramble the ball into the net to secure a 3-2 win for Bournemouth, and back-to-back home victories.
Alex Jimenez doubled the Cherries' lead with his first goal for the club. (Image: Richard Crease)
Andoni Iraola made one change to his side which drew at Brighton, as Adam Smith replaced the injured Marcus Tavernier and Jimenez moved to the wing from right back.
New signing Alex Toth was named among the replacements, while former Cherry Milos Kerkez started for the visitors.
In wet and windy conditions at Dean Court, chances were few and far between for both sides in the opening 20 minutes.
Liverpool’s opening effort on goal saw Salah curl an effort high and wide, before James Hill had the Cherries’ first shot when he shot over the bar on the turn with 18 minutes on the clock.
But Bournemouth converted their first clear chance on goal to take the lead.
A brilliant ball over the top of the defence from Marcos Senesi found Alex Scott, van Dijk didn’t deal with it and the Englishman passed across the six-yard box for Evanilson to smash home.
Evanilson opened the scoring for Bournemouth. (Image: Richard Crease)
Joe Gomez picked up an injury trying to deny the Brazilian and was forced off, and before he could be replaced, the Cherries made the most of their man advantage to double their lead.
Hill was the provider from centre back this time, as he played a wonderful ball through to Jimenez who got ahead of Kerkez and finished well under Alisson.
Mo Salah shot weakly into the arms of Djordje Petrovic, before the visitors got a goal back just before the break.
Van Dijk flicked home a Szoboszlai corner as the game entered stoppage time at the end of the first half to narrow the deficit to one at the interval.
Alex Jimenez doubled the Cherries' lead with his first goal for the club. (Image: Richard Crease)
The second half started with the visitors seeing plenty of the ball and applying pressure on the Bournemouth backline.
The Cherries defence held firm and restricted Liverpool to few shots on goal, with the efforts the Red did have largely from distance.
Ryan Gravenberch was not far away as he dragged an effort wide of goal when space opened up for him to shoot, before Ryan Christie was introduced for Junior Kroupi with 23 minutes to play.
Scott struck the defensive wall with a free kick from 30 yards, before a Hill long throw caused some problems moments later but the visitors were able to clear.
Adam Smith (Image: Richard Crease)
The visitors drew themselves level as Salah rolled the ball back to Szoboszlai from a free kick 25 yards from goal and the Hungarian fired into the bottom corner.
Alisson saved brilliantly from a Christie snap shot as the Brazilian tipped the Scot’s shot over the bar, before Evanilson saw a golden chance go begging.
He was slipped in by Christie who carried the ball a long way into space in the Liverpool half, but his shot dribbled past Alisson’s post.
Petrovic denied Florian Wirtz with an excellent fingertip save, before Scott shot over the bar when teed up on the edge of the box by Christie, as the Cherries responded well to the equaliser.
James Hill (Image: Richard Crease)
Enes Unal replaced Evanilson as the game entered four added minutes, and it was in the final additional minute that the Cherries secured the points with a dramatic winner.
Hill launched a long throw in, it dropped in the box, Senesi turned it goalwards to Adli, who shot and hit the post before it fell back to the Moroccan and he found the net at the far post from a tight angle.
That was the final action of the game as the Cherries sealed a fantastic three points to move to 13th in the Premier League.
AFC Bournemouth: 1, D. Petrovic; 15, A. Smith (c); 23, J. Hill; 5, M. Senesi; 3, A. Truffert; 8, A. Scott; 4, L. Cook; 20, A. Jimenez (Toth 85’); 22, J. Kroupi (booked, 45+3’)(Christie 67’); 21, A. Adli; 9, Evanilson (Unal 90+3’).
Liverpool: 1, Alisson; 30, J. Frimpong (Jones, 58’); 2, J. Gomez (Endo 35’); 4, V. van Dijk; 6, M. Kerkez (Robertson 46’); 38, R. Gravenberch (booked, 90+4’); 10, A. Mac Allister (Ekitike 58’); 8, D. Szoboszlai; 7, F. Wirtz; 11, M. Salah; 18, C. Gakpo (Ngumoha 74’).