Yeah, you'd be in trouble for that in the UK, as it would be deemed to be looking for a fight. The guiding principles in the UK are a) that you should not start or encourage confrontation, and b) you should use reasonable force. There is also a distinction between defence of property and defence of oneself. There's more latitude in self-defence (including defence of others) than defence of property.
Defence should be "honest and instinctive", so if you are deemed to have prepared a weapon, you are likely to be in trouble, whereas if your access to a weapon is incidental, you should be okay. So for instance if you have a baseball bat in your house but no reasonable explanation for why (like, no-one plays or ever has played baseball in your household) and you use it on a burglar, you're liable to be charged. If you play baseball, however, you could justify why you would have a bat lying around. If you use a kitchen knife, but were not in the kitchen nor could get to the kitchen during the incident, you'd be at risk of being charged. Cynical police advice would be to buy something like a heavy table lamp, because even if you'd totally bought it in case you wanted to hit an intruder with it, there's very little chance a court could prove it beyond reasonable doubt (except for your own confession) and so wouldn't even bother. Do not use disproportionate force. If the intruder/attacker flees, do not pursue or further attack them. The police are sympathetic to defence of self and home, but if you do inflict critical injury or death on an intruder, they will have to look into it.
When it comes to defence of one's property, the UK law is at the restrictive end and I don't necessarily think that's inherently "better". I see these laws more as "horses for courses": other countries may have looser laws which are better suited to their circumstances, challenges and public attitudes.
What I absolutely do think is that if you knowingly, voluntarily, and unnecessarily walk into an area of public disorder with a weapon, you can argue about your rights to be in a public place and your rights to self-defence all you like, but if you end up killing someone with that weapon, you deserve very little sympathy from the law or society.