manage and regulate the legal movement of people into and out of a country by issuing visas ,permits and travel documents ,and by enforcing immigration laws through border management and investigations