The person who obtains the order of protection will be the one to stay.  The order of protection will say that the person who protection is sought against must stay away from the home, work, etc., of the other.  So that would prevent them from coming in to the shared home.