On a Stopped Doob's Inequality and General Stochastic Equations