You have a few things that could be going on. Some of the issue stems from a poorly designed raw water cooling system. The D3 requires an 1 1/4" thru Hull and all plumbing no smaller than an 1 1/4" ID. Fluid motion decided that 1" is enough ! Does 1" work ? Yes if there are no Variables and the ambient sea water is cool like it is in the PNW. Think of the factory install as being about 20% restricted right from the start.
Add some debris in the strainer and the reverse gear cooler. ( yes the reverse gear cooler gets fouled very easily because of the course strainer screen that Marine Hardware uses in the strainer installed in the Rangers and Cutwaters powered with the D3 or Yanmar 150 Hp to 220hp.) Make sure the reverses gear cooler is clear of all debris anytime you experience an over heat.
Growth on the bottom will load the engine down. An engine operates in a higher temperature range because of a compromised raw water cooling system will easily start to run above temperature when a increased load is applied because of growth. You are trying to run at the same speed has when the bottom is clean and the engine is loaded down.
The other issue is the Ranger Tugs for the most part are not propped right. If your engine D3 200 hp will not turn 4000rpm WOT it is over propped. Now add some growth on the bottom and loose another 100 or 150 RPM you are loading an engine down that has a marginal Raw water cooling system to start with. Results higher operating temperatures. The D3 with a proper sized raw water cooling system should not have more than 10F variation between slow cruise and WOT. The range should be 178F to no more than185F at WOT. When I had my Cutwater(New) the range was 178F to 193F, as normal operating variables were applied, water ambient temperature, full fuel water and extra gear for cruising added, a little slime on the bottom and a small amount of debris in the reverse gear cooler. ( known good impeller with under 100 hours) My temperatures would rise above 200F. That is to Hot.
The cure, Get rid of that 20% restriction caused by the 1" thru hull, keep a clean bottom, confirm the engine turns a minimum of 4000 rpm at WOT as loaded. unloaded it should run 4150RPM, replace impeller every 200 hours, maintain the raw water cooling system if run in salt water by frequent flushing, replace the anti freeze in the cooling system everyother year.