"She faked her death to avoid the penalty, only for her desperation to be frustrated as law enforment comes to her door"
I paraphrase the original sentence. I hope the change wouldn't make to much difference semantically.
The part that confuses me is "only for her desperation to be frustrated when law enforment comes to her door".
Does this sentence mean,
she feigned her death to avoid the legal penalty, but instread her plan got failed as police showed up at her door.
If it is right, where can I find more examples like this sentence? If it isn't, what does it mean?