Before each ride, you should visually inspect your motorcycle to ensure that nothing is loose, and that there is no visible damage. Unlike in a car where you can simply pull off to the side of the road when you have a malfunction, on a motorcycle there in many cases are no second chances. A tire blowout could be catastrophic, or a loose bolt could result in disaster.
A simple cursory inspection of your motorcycle before each ride, could mean the difference between life and death.
If you find the loose bolts simply tighten them. If you find a nail in your tire, or visible damage to your tire, ensure that you get the problem fixed before you ride.
Do not take chances and ride your motorcycle when you know that there are problems. It’s not worth risking your life for.