Population genetic structure and adaptation of malaria parasites on the edge of endemic distribution