It is important to only invest what you can afford