Investigation of the precursor phase of gamma-ray bursts through gamma-ray and high-energy neutrino observations