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