Freelancing on a tourist visa is generally not legal. Most countries require individuals to have a work visa or residence permit in order to legally work in the country. If you are caught freelancing on a tourist visa, you could face fines, deportation, or other legal consequences. It's important to research the visa requirements for the country you want to work in and obtain the appropriate visa before starting work.