Well, it's possible you are being treated unfairly- you should not be shouted at (even if your behaviour is poor). If this really is the case, I am surprised that a HCP would behave in this way towards you (especially if they work in mental health), and even more surprised that this been done by more than one HCP and has happened on multiple occasions. If so, you should complain about it, as it seems to be a systematic problem within the department you are treated by, and needs to be dealt with.
That said, are you sure that they have actually shouted at you and threatened you? As opposed to telling you frankly your behaviour/actions was unacceptable and that continuing to behave in this way would result in unpleasant consequences- such as a referral to social services?
However, from personal experience (as a HCP and as someone who has a cousin with BPD and a brother with narcissistic PD), some people with BPD are difficult to treat/be around and do display manipulative behaviour, which tends to cause others to react differently to them. I hate it when my relatives attempt to manipulate me, I tend to just back off and keep them at arms length.
Clearly, with patients you can't just distance yourself from them if you are on the receiving end of manipulative behaviour. However, I do make sure everything is done exactly by the book, and with witnesses if at all possible, if I think a patient is behaving in a manipulative manner. This is to protect myself.
Perhaps what you are perceiving as "unfair" treatment is a perfectly rational response to your behaviour? I understand that having this condition isn't your fault, and you probably aren't consciously displaying BPD behaviours- but that doesn't change the impact it has on others, nor their reaction to you.