Yes, this can be very dangerous. Jumping back and forth means you have a risk of developing resistance. This would mean your meds would stop working well.