#include <bits/stdc++.h>
using namespace std;
int a, b, c, d, n, t;
int main() {
  cin >> t;
  while (t--) {
    cin >> n >> a >> b >> c >> d;
    if ((a - b) * n > c + d || (a + b) * n < c - d)
      cout << "NO";
    else
      cout << "YES";
    cout << endl;
  }
  return 0;
}
