Make a copy of the file you're going to edit, then edit the original offline and upload it. If something goes wrong, upload the backup and check the file you edited for anything that's wrong.
Of course it's best/easiest/safest to have a copy of your forums on your own computer so you can test it before you upload your files.