A Fife community is mobilising to protect the future of its historic church.