It depends on the circumstances and the law of your country. For example in most countries, walking to a baseball practice field - when you're engaging in the sport - with your bat in your hand is legal. However, walking aggressively to a store for example with a baseball bat in your hand may attract the attention of law enforcement agencies.