The floor needs to be stable or the tile won't stay stuck down. Glue on top of loose paint is only as strong as the loose paint. A small amount of water for a very short period of time won't likely damage the flooring, or rather, the adhesive. A lot of water, prolonged flood periods, and frequent flooding will have those tiles up in no time.