97 Ram A/C question

My 97 Ram a/c works and blows cold when cruising, at a steafy rpm, but when I accelerate, it cuts off until back at a steady rpm. I checked the pressures and its in the ok range with my gauge, but why could it be shutting off? It is a bone stock 5.2 truck. Any ideas?