Legally I don't think either party in this case could make a good claim against the other.
From a safety point of view, the proper thing to do is assume all trail users are just waiting to do the most stupid thing possible at the worst possible time, and plan your counter move in advance.