The aluminum Josephson junction (JJ) with a critical current, suppressed by a factor of three comparing with the maximal value calculated from the gap, is experimentally investigated for application as a threshold detector of microwave photons. We present the preliminary results of measurements of the lifetime of the superconducting state and the probability of switching by 9 GHz external signal. We found an anomalously large lifetime, not described by the Kramers' theory for the escape time over a barrier under the influence of fluctuations. We explain it by the phase diffusion regime, which is evident from the temperature dependence of the switching current histograms. Therefore, the phase diffusion allows to significantly improve the noise immunity of a device, radically decreasing the dark count rate, but it will also decrease the single photon sensitivity of the considered threshold detector. Quantization of the switching probability tilt versus signal attenuation for various bias currents through the JJ is observed, which resembles the differentiation between N and N+1 photon absorption.