Max Velocity discusses the home invasion scenario, whether it be a group of thugs, or a group of thugs with badges. Read and consider here.
He also offers follow up solutions for home invasions. In summary, submit or fight. You can find that here.
Don't make it easy for them.