When are laxatives good for constipation and when are the dangerous?

Short term. Laxatives are good in the short run but bad when you rely them all the time because they train the bowel expect that extra "nudge" and then they don't work without it. Instead, use bulking foods: high fiber cereals like fiber one and all bran which you can safely take (and should take) every day.