Police are warning that anyone caught stealing from flood-affected areas could face up to 10 years in jail after a man was arrested in Gympie as floodwaters rose.