It is demonstrated that offshore wavenumbers of edge waves change from imaginary wavenumbers in deep water to real wavenumbers in shallow water. This finding indicates that edge waves in the offshore direction exist as evanescent waves in deep water and as propagating waves in shallow water. Since evanescent waves can stably exist in a limited region while propagating waves cannot, energy should be released from nearshore regions. In the present study, the instability region is predicted based on both the full water wave solution and the shallow-water wave approximation.