You are missing the whole point of this fight then
Law escaping from here makes this whole fight meaningless. Not to mention, law has his crew here. His crew is definitely isn't a match for BBP. So, law can't escape from BBP with his whole crew after getting defeated when he failed to do so even before fight got started.
And, law isn't the kind of person who will leave his crew behind because that will shit on his character and I don't see Oda pulling that.
Only way law and his crew getting escaped makes sense is if someone strong came to save him to engage BB and law somehow finds a way to escape.
And, someone coming to save law as of now seems like less of a possibility. Only person I can think of who can actually pose some threat to BBP is sengoku. If navy shows up then both law and BB would be in mind which once again makes law escaping from here less probable
So, this leave us with only two possibilities - him getting captured or getting killed.