This is a phrase that you say before warning someone of something.
The phrase "Heads up!" comes from sports. You say this before throwing a ball to someone to let them know to raise their head and look for the ball, so they don't get hit. This phrase has spread to business and social situations as well, in the form "(this is) just a heads up".