Evander Kane just got a judge to order his estranged wife, Anna Kane, to stay the hell away from him ... after he said he's "afraid" of her following her gun video post last week.

It's all spelled out in new court documents, obtained by TMZ Sports, in which Evander says he's fearful Anna might hurt him, his girlfriend, Mara Teigen, and his daughter in the wake of her recent social media activity.

As we previously reported, Anna posted a video of Evander with a gun on Instagram last Wednesday, saying it showed him recklessly pointing it at her in 2020.