Before you rush into a side gig, scrutinize the risks, the pay and other important details. Here’s how.