A man who complained about cannabis smoke drifting into his flat had a gun put to his head after confronting his neighbour.