#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  for (int i = 1; i <= t; i++) {
    int n;
    cin >> n;
    int a, b, c, d;
    cin >> a >> b >> c >> d;
    int mini = (a - b) * n;
    int maxi = (a + b) * n;
    int tot_mini = (c - d);
    int tot_maxi = (c + d);
    if (mini < tot_mini) {
      if (maxi < tot_mini)
        cout << "NO\n";
      else
        cout << "YES\n";
    } else if ((mini >= tot_mini) && (mini <= tot_maxi)) {
      cout << "YES\n";
    } else if (mini > tot_maxi)
      cout << "NO\n";
  }
}
