One of the best things you can do to improve your safety is to do a pre-ride inspection.
Use a gauge, check that your tire pressure is equal to the recommended level on tires sidewall.
Inspect the brakes to make sure that the pads are not worn out, and when you squeeze the brake lever they tightly grip the wheel.
Look and listen for looseness in the handlebars, headset, wheels, and other parts.
It doesn’t matter whether your bike is a day or a year old, things go wrong when you ride. The best thing to do is to be prepared and bring a toolkit along with you when you go for a ride.
Have s small tire pump mounted to your frame.
Include everything you might need, a tire patch kit and hand tools such as Allen wrenches, screwdrivers, a spoke wrench, and pliers.
Make sure that you have some rags, to wipe the grease off your hands.