What Alex said would be the correct way, but you could fit one of the electronic boost solenoid valve equipped controllers that can map boostpressure on rpm points, you could then "map" the boost curve to be just below the surge line at every rpm point

.