In this paper, by introducing environmental white noise and telegraph noise, we proposed a stochastic predator–prey model with the Beddington–DeAngelis type functional response and investigated its dynamical behavior. Persistence and extinction are two core contents of population model research, so we analyzed these two properties. The sufficient conditions of the strong persistence in the mean and extinction were established and the threshold between them was obtained. Moreover, we took stability into account and, by means of structuring a suitable Lyapunov function with regime switching, we proved that the stochastic system has a unique stationary distribution. Finally, numerical simulations were used to illustrate our theoretical results.