A recent question of an underwater race hunting land-based creatures has been answered with "they can build dams" (here https://worldbuilding.stackexchange.com/a/253462/86466). I have wondered: Is it ever possible to a feasible sentient underwater dwellers to build dams on a river they can reach? I am currently under an impression that any attempt of damming a river from underwater would result in either a dam break or just increased flow to the point of washing the partly built dam away.
Base data: The underwater race is general merfolk, with hands and enough strength to swim up rivers and stay there, as well as fresh water tolerance (they live in the oceans). Their civilization is at about bronze age, but they definitely lack fire knowledge, as it just doesn't burn under water. They are not able to walk on land, while they can theoretically crawl on the open terrain with help from their arms, but they are unable to sustain their gills for prolonged time, so they can at most crawl about half a mile before exhaustion, and a whole mile if there's water in the end, otherwise they get damaged and probably die of dehydration. They are sentient, and thus can build cantrips with natural ropes (assuming a tech that allows them to wind ropes out of some seaweed unknown to landlubbers), and they can transport stones of serious weight using inflatable swim bladders, also naturally obtainable. Any other assumptions can be made except magic and technologies above medieval age.
EDIT: blocking a creek is possible if you can leave water for a little, I'm interested in large rivers that are no less than a merfolk's height deep (2 meters), and also those that have flow speed of 0.5 m/s and above. The initial purpose of the dam was flooding upstream and/or blocking seafish from reaching the upstream settlements, if they are concerned.