Carefully choose your mooring place in a safe spot, try to avoid being too close to locks and bridges for example.
When approaching your chosen spot be extra careful to ensure your chosen mooring spot doesn’t conceal any hidden dangers - like a tree stump or submerged rock that could damage the hull.
Make sure you allow for the fact that on some waterways the water level may rise or fall by several feet. This is especially important when mooring overnight.
On a river, always moor into the current, with the bow (or front of the boat) facing upstream, even if it means turning around.