2005 Subaru Outback AC problems

If the compressor is kicking on and off,it is porbably low on gas, and if it freezes it is overcharged.