Gene flow effects on populations inhabiting marginal areas: Origin matters