I believe is either a late 70’s or early mid 80’s movie, the lead actor who is in his mid 20’s is running from the law he meets a beautiful girl there is a steamy scene in a pool from a hotel they stayed in, In the end scene he Is running trying to get away from police but gets to an alley with no exit, knowing he will not survive he kind of make some dance move with his hands then turns around and is shot( they don’t show them shooting at him but one figures is what happens) it is driving me crazy the fact I can’t remember the name! Thank you all!
“Breathless” (1983) with Richard Gere? The basic premise and the ending is very similar to what you describe, and there is a pool scene as well.
https://www.imdb.com/title/tt0085276/
If you think that this is the movie you are looking for, then please select my answer as Best Answer, there is an option for that.