It is a mistake to use the map() function until you are sure that the PID algorithm is running correctly, which includes the proper direction of change in the output value. If the RPM is too low, the output value should be high, etc.
After it is running correctly, then it is appropriate to limit the output values (NOT using a map function) to be physically reasonable.
Google "pid tuning" for many tutorials on how to tune the loop.