I think it's more of a premonition rather than her conscious desire to die. Also, "the kindness of strangers" is a quote from the Streetcar Named Desire where in the end, betrayed by everyone in her life, Blanche says something like that she "always relied on the kindness of strangers". Mary is naïve and feels alone in the big world she always wanted to see, she is used to her home town and people who don't mean her harm, so she doesn't suspect any foul intent when she opens the door for the man who I think she lets in out of simply not wanting to be lonely. When she says that she might die after seeing the ocean, it means that it's breathtaking and the greatest accomplishment of her life, which becomes prophetic.
I think it's more of a premonition rather than her conscious desire to die. Also, "the kindness of strangers" is a quote from the Streetcar Named Desire where in the end, betrayed by everyone in her life, Blanche says something like that she "always relied on the kindness of strangers". Mary is naïve and feels alone in the big world she always wanted to see, she is used to her home town and people who don't mean her harm, so she doesn't suspect any foul intent when she opens the door for the man who I think she lets in out of simply not wanting to be lonely. When she says that she might die after seeing the ocean, it means that it's breathtaking and the greatest accomplishment of her life, which becomes prophetic.