Reduce speed to the minimum required to maintain steerage. Use reverse gear to bring the boat to a stop well away from the dock.
Determine the wind and/or current direction while stopped by observing which way your boat drifts. If possible, make your approach into the wind or current, whichever is stronger. This will give you more control.
Have bow and stern lines ready, and put boat fenders in place. Never plan to stop a moving boat with your arms or legs.
When the area is clear of traffic, continue your approach.