Most of the mouse conditionals don't work with this because the game doesn't recognize the mouses coordinates if you go outside the window. Mouselock plugin is kind of weird because when you lock the mouse it disappears and that's not an elegant solution.
What I ended up doing was testing if an invisible object following the mouse was within 10 pixels of the border and killing the player then. Thanks for the help!