This phrase is typically used when you don’t agree with someone’s actions. It could also mean that you are fed up with a person.
“Thomas took all the drinks for himself” “Dude that’s petty. This kid is something else!”