You can travel till the six months of your pregnancy. Airlines usually do not accept passengers who are in the seventh month. For further information on your case seeking extension after six months of stay, seek guidance directly from the immigration.