The safest way to begin is by taking a dirt bike riding course. This will teach you essential skills like throttle control, braking, cornering, and most importantly, safety procedures. You can also look for rentals at tracks or off-road parks to get a feel for it before buying a bike.