It is known that for any UFD $F,$ if we have a monic polynomial $$f(x) = x^n + a_{n-1}x^{n-1} + \dots + a_1x + a_0 \in F[x], $$ a prime $p$ in $F$, and a positive integer $k\le n-1$ such that the conditions
(1) The elements $a_0, a_1, \dots, a_{k-1}$ are all multiples of $p$
(2) The element $a_0$ is not divisible by $p^2$
(3) The element $a_k$ is not divisible by $p$
are met, then $f$ has an irreducible factor of degree at least $k.$
Is there any analogous result that holds when we work with a general integral domain $F$ (and some prime ideal $P$ of $F$)?
I know that there is a similar result for the specific case of $k=n,$ but i was wondering if there is a similar result in the general case.