Hi...If this is not a regular occurrence you can use a fuse between batteries with the right rating. This would allow the batteries to equalize as long as they are not too different, but if they are too different the fuse would blow.
The fuse of course has to be able to handle the full load...