Almost fired and set up

So my boss who doesn't like me because I got him in trouble for popping me in the face with a mask is trying to set me up to get fired. He said my job and my checks come first to helping anyone. Well with me following his direction, I was almost fired today! HR said I have to help people and miss my check. So either way I'll get fired because he's saying one thing and they're saying another. I mentioned that and was told I am still maturing. Wth? I know every skill for my position and can do any part of it unlike most of the others and yet he has a vendetta out for me because he's a grown man that can't keep his hands to himself?