The movie is famous for a series of "double-cross" twist endings that divided audiences:
It is revealed that Dylan’s death was also a prank—this time played on Elvis. Dylan is actually a professional stuntman named Max, and the "accident" was the staff's way of celebrating Elvis's birthday. Key Details On the Line (2022) - IMDb
Shaken by the prank, Dylan accidentally falls down a flight of stairs and dies.