Comparison between the nearest and the next-nearest neighbor site spin interactions in the Ising model