Portland man arrested after endangering lives at foreshore